主题:  谁知道time.com怎么做的。。。

potomato

职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/1/6 11:14:02
#12004/5/7 14:00:03
首页右边的栏目的小窗口有三个选项,选择任何一个,画面只更新此窗口。我试用frameset做,一个窗口还行,如果一列下来有几个类似窗口就不行。要么太多的滚轴,要么只显示部分窗口。他们应该用的是什么java吧?

有谁能教教怎么做吗?多谢了!



暗日夜奔

职务:普通成员
等级:1
金币:0.0
发贴:2
注册:2004/5/7 15:36:07
#22004/5/7 15:40:35
好象是iframe吧



红叶舞香山

职务:普通成员
等级:1
金币:1.1
发贴:269
注册:2004/4/5 22:03:45
#32004/5/7 16:45:30
如果是用框架做的话在.在打开链接的时候你要选择在maiinframe打开.
看下面的代码:
<a href="#" target="mainFrame">测试</a>



potomato

职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/1/6 11:14:02
#42004/5/7 17:32:43
一个框架还行, 如果右边一列有四五个就不灵了。要么每个frame都出现滚轴,要么都只显示部分。框架里套框架比较麻烦。
 



potomato

职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/1/6 11:14:02
#52004/5/8 6:53:28
pe2000, 知道哪里有iFrame的教程吗?多谢!



闪来~闪去~

职务:普通成员
等级:6
金币:10.5
发贴:1906
注册:2004/1/13 11:00:26
#62004/5/8 9:45:10
potomato在上个帖子中说
引用:
pe2000, 知道哪里有iFrame的教程吗?多谢!


www.5d.cn/bbs/newsdetail.asp?id=92684&posts=current

网上关于iframe的教程还是很多的



potomato

职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/1/6 11:14:02
#72004/5/8 13:06:01
谢谢adele



potomato

职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/1/6 11:14:02
#82004/5/8 15:43:11
我在英文网站上收到这么一个回帖,看上去好想比iframe先进些。有人会吗?
For each one of the ads section with the tabs (there are 3 on the link you gave (two on the right and one at the bottom)): there is an array of the layers in the box.

Then onclick of the link (uses an image map oddly enough), the function cycles through the array hiding all the layers with that name in the array. Then the one layer name that is passed to the funtion is shown at the end of all the hiding.

If it was me, I'd create a variable to store the last layer to be shown.

Here's what the seudo code what look like.

Array = "layer1","layer2","layer3","layer4";

function swapTab(layerToShow)
{
while(i less than Array.length; i++)
{
hide(Array[i])
}
show(layerToShow)
}