|
- <script Language="JavaScript">
- tips = new Array(2);
- tips[0] = "<a href='http://xyz.com/a.htm'><img src='a.gif'></a>";
- tips[1] = "<a href='http://xyz.com/b.htm'><img src='b.jpg'></a>";index = Math.floor(Math.random() * tips.length);
- document.write("" + tips[index] + "");
- </script>
复制代码
如果我直接显现的是.htm可以吗?不要切换.gif或.jpg,
比如我已经我GoogleAdSense代码弄成.htm了,我想随机切换“它”和别的banner…
用<iframe>吗?我做不到?会的大大教我一下! |
|
|
|
|
|
|
|
发表于 8-6-2007 11:05 PM
|
显示全部楼层
原帖由 starfruit 于 8-6-2007 10:47 PM 发表
<script Language="JavaScript">
tips = new Array(2);
tips = "<a href='http://xyz.com/a.htm'><img src='a.gif'></a>";
tips = "<a href='http://x ...
我想可以用上面那个javascript。
纯HTML应该弄不到。 |
|
|
|
|
|
|
|

楼主 |
发表于 24-6-2007 05:07 PM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|