魔剑论坛
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
首页Latest images注册登录

分享 | 
 

 有人哇...帮个忙好不

浏览上一个主题 浏览下一个主题 向下 
作者留言
tangseng008
版主
版主
tangseng008

帖子数 : 908
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751024.03.10 16:42

今年院庆
现在需要在网站的左右各加一个随滚动条滚动的广告图片,但是2个图片不能是一样的...要不一样的


|图| 网站内容 |图|
|片|      |片|


基本上就是这样的要求....
请教高手咋整... [要查看本图请先注册登录]
返回页首 向下
mf-max
总版主
mf-max

帖子数 : 1793
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751024.03.10 16:53

在主页里添加flash 然后设置排版。
返回页首 向下
mf-max
总版主
mf-max

帖子数 : 1793
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751024.03.10 17:11

我找了下代码
代码:
<html>
<head>
<title>网页对联广告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body style="margin:0px;">
<div align="center">
  <center>
  <table border="1" width="776" height="3000" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%" valign="top"><div align="center" style="color:green;font-size:23pt;font-family:黑体;"><br><br>
  页<br>面<br>区<br>域</div></td>
    </tr>
  </table>
  </center>
</div>
<script LANGUAGE="Javascript">
<!--
var showad = true;
var Toppx = 60;  //上端位置
var AdDivW = 100;  //宽度
var AdDivH = 360;  //高度
var PageWidth = 800; //页面多少宽度象素下正好不出现左右滚动条
var MinScreenW = 1024; //显示广告的最小屏幕宽度象素

var ClosebuttonHtml = '<div align="right" style="position: absolute;top:0px;right:0px;margin:2px;padding:2px;z-index:2000;"><a href="javascript:;" onclick="hidead()" style="color:red;text-decoration:none;font-size:12px;">关闭</a></div>'
var AdContentHtml = '<div align="center" style="color:green;font-size:23pt;font-family:黑体;"><br这里添加你的广告内容或图片链接</div>';//这里添加你的广告内容或图片链接
document.write ('<div id="Javascript.LeftDiv" style="position: absolute;border: 1px solid #336699;background-color:#EEEEE2;z-index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml+'</div></div>');
document.write ('<div id="Javascript.RightDiv" style="position: absolute;border: 1px solid #336699;background-color:#EEEEE2;z-index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml+'</div></div>');
function scall(){
 if(!showad){return;}
 if (window.screen.width<MinScreenW){
  alert("临时提示:\n\n显示器分辨率宽度小于"+MinScreenW+",不显示广告");
  showad = false;
  document.getElementById("Javascript.LeftDiv").style.display="none";
  document.getElementById("Javascript.RightDiv").style.display="none";
  return;
 }
 var Borderpx = ((window.screen.width-PageWidth)/2-AdDivW)/2;

 document.getElementById("Javascript.LeftDiv").style.display="";
 document.getElementById("Javascript.LeftDiv").style.top=document.body.scrollTop+Toppx;
 document.getElementById("Javascript.LeftDiv").style.left=document.body.scrollLeft+Borderpx;
 document.getElementById("Javascript.RightDiv").style.display="";
 document.getElementById("Javascript.RightDiv").style.top=document.body.scrollTop+Toppx;
 document.getElementById("Javascript.RightDiv").style.left=document.body.scrollLeft+document.body.clientWidth-document.getElementById("Javascript.RightDiv").offsetWidth-Borderpx;
}

function hidead()
{
 showad = false;
 document.getElementById("Javascript.LeftDiv").style.display="none";
 document.getElementById("Javascript.RightDiv").style.display="none";
}
window.onscroll=scall;
window.onresize=scall;
window.onload=scall;
//-->
</script>
</body>
</html>

我试过了可以用


由mf-max于24.03.10 17:28进行了最后一次编辑,总共编辑了1次
返回页首 向下
mf-max
总版主
mf-max

帖子数 : 1793
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751024.03.10 17:13

晕。。这个两个代码 显示的图片一样的。
返回页首 向下
tangseng008
版主
版主
tangseng008

帖子数 : 908
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751024.03.10 17:22

....
我已经找到了...
虽然俺看不懂代码
我找了一段发给我同事,他说行了
返回页首 向下
mf-max
总版主
mf-max

帖子数 : 1793
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751024.03.10 17:29

你发给我看看啊 。。。
我也好加到这个论坛 哈
返回页首 向下
green lemon
版主
版主
green lemon

帖子数 : 818
注册日期 : 10-02-01

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751024.03.10 17:33

太高深了~
返回页首 向下
tangseng008
版主
版主
tangseng008

帖子数 : 908
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751025.03.10 9:46

代码:

<table height="1000"><tr><td>
<script>
var delta=0.05
var collection;
function floaters() {
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write(''+content+'
');

var newItem = {};
newItem.object = document.getElementById(id);
newItem.x = x;
newItem.y = y;
this.items[this.items.length] = newItem;
}
this.play = function()
{
collection = this.items
setInterval('play()',50);
}
}
function play()
{
for(var i=0;i0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}
if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=followObj.offsetTop+dy;
}
}
}

var theFloaters = new floaters();
theFloaters.addItem('followDiv1','document.body.clientWidth-106',198,'[url=http://www.vicagroup.com.cn/][img]border=0[/img][/url]');
theFloaters.addItem('followDiv2',6,198,'[url=http://www.vicagroup.com.cn/][img]border=0[/img][/url]');
theFloaters.play();
</script></td></tr></table>

不过貌似有个镜像的代码,放上的图是反的...你把它去掉就行
返回页首 向下
mf-max
总版主
mf-max

帖子数 : 1793
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751025.03.10 9:58

好的。。。我回家研究下。
返回页首 向下
tangseng008
版主
版主
tangseng008

帖子数 : 908
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751025.03.10 10:53

[要查看本图请先注册登录]
返回页首 向下
交流电
职业游侠
职业游侠
交流电

帖子数 : 77
注册日期 : 10-02-08

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751028.03.10 23:20

高深!
返回页首 向下
tangseng008
版主
版主
tangseng008

帖子数 : 908
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751029.03.10 11:04

其实俺也不懂...
返回页首 向下
汉军威武②
青木堂堂主
汉军威武②

帖子数 : 919
注册日期 : 10-03-29

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751031.03.10 21:47

路过。。。。。。。。。
返回页首 向下
tangseng008
版主
版主
tangseng008

帖子数 : 908
注册日期 : 10-02-02

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751001.04.10 10:46

路过的留下内外衣物
返回页首 向下
19970499
魔剑大侠
魔剑大侠
19970499

帖子数 : 130
注册日期 : 10-03-28

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751001.04.10 19:08

什么帖子都水一下
返回页首 向下
酒鬼
魔剑大侠
魔剑大侠
酒鬼

帖子数 : 187
注册日期 : 10-03-31

有人哇...帮个忙好不 Vide
帖子主题: 回复: 有人哇...帮个忙好不   有人哇...帮个忙好不 0751002.04.10 11:19

不懂
返回页首 向下
 

有人哇...帮个忙好不

浏览上一个主题 浏览下一个主题 返回页首 
1页/共1

您在这个论坛的权限:不能在这个论坛回复主题
魔剑论坛 :: 魔剑大陆论坛 :: 魔剑综合区-
如何申请免费论坛 | ©phpBB | 互助中心 | 违法举报 | 最近的讨论