指向要在iframe中显示的另一个文件的相应链接 [英] Corresponding links to another file to be displayed in iframe

查看:61
本文介绍了指向要在iframe中显示的另一个文件的相应链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有人可以提出我应该如何完成这项任务的想法吗?

我使用< td>制作了一个简单的时间表当我将鼠标悬停在单元格上时,我希望它链接到另一个列表中的某些内容并且它将对应于它。

例如..在我的时间轴中说

cellwidth1-> keyFrame1

cellwidth2-> keyFrame2

cellwidth3-> keyFrame3

....


keyFrame1,2,3..is来自另一个文件。


[html]


1.

foreach($ allEvents as $ timeline)

2.

{

3.

.....

4.

.....

5.

.....

6.


7.

< td width ="<?php echo($ cellwidth); ?>"高度= QUOT; 17" BGCOLOR = QUOT;#4A8A00" onMouseOver =" this.style.background =''#9CCB52''" onMouseOut =" this.style.background =''#4A8A00''">< / td>

8.

...

9.

....

[/ html]



这是第二个文件是链接


[html]


1.

....

2.

....

3.

< td width =" 65" VALIGN = QUOT;顶"宽度= QUOT; 65 QUOT;高度= QUOT; 44"边界=" 1 QUOT; vspace =" 2">

4.

< img src ="<?php echo $ keyFrame;?>"

5.

onclick =" parent.playClip(<?php echo $ eventID?>,<?php echo $ startTime;?>,<?php echo $ stopTime;?>)">< / td>

6.

...

7.

...


[/ html]



显示在iframe中在第一个文件中。 iframe名称= eventsDisplay。我应该使用onClick吗?


谢谢


nma

解决方案

allEvents as


timeline)

2.

{

3.

.....

4.

.....

5.

.... 。

6.


7.

< td width ="<?php echo(


cellwidth); ?>"高度= QUOT; 17" BGCOLOR = QUOT;#4A8A00" onMouseOver =" this.style.background =''#9CCB52''" onMouseOut =" this.style.background =''#4A8A00''">< / td>

8.

...

9.

....

[/ html]



这是第二个文件是链接


[html]


1.

....

2.

....

3.

< td width =" 65" VALIGN = QUOT;顶"宽度= QUOT; 65 QUOT;高度= QUOT; 44"边界=" 1 QUOT; vspace =" 2">

4.

< img src ="<?php echo


Hi,

Can someone give ideas on how should I do this task?
I''ve made a simple timeline using <td> and when I mouseover the cell I want it to link to another list of something and it will corresponding to it.
Eg..in my timeline say
cellwidth1->keyFrame1
cellwidth2->keyFrame2
cellwidth3->keyFrame3
....

keyFrame1,2,3..is from another file.

[html]

1.
foreach($allEvents as $timeline)
2.
{
3.
.....
4.
.....
5.
.....
6.

7.
<td width="<?php echo ($cellwidth); ?>" height="17" bgcolor="#4A8A00" onMouseOver="this.style.background =''#9CCB52''" onMouseOut="this.style.background=''#4A8A00''"></td>
8.
...
9.
....
[/html]


and this is the second file to be link

[html]

1.
....
2.
....
3.
<td width="65" valign="top" width="65" height="44" border="1" vspace="2">
4.
<img src="<?php echo $keyFrame;?>"
5.
onclick="parent.playClip(<?php echo $eventID?>, <?php echo $startTime;?>, <?php echo $stopTime;?>)"></td>
6.
...
7.
...

[/html]



the display is in the iframe in the first file. The iframe name=eventsDisplay. Should I use onClick?

Thanks

nma

解决方案

allEvents as


timeline)
2.
{
3.
.....
4.
.....
5.
.....
6.

7.
<td width="<?php echo (


cellwidth); ?>" height="17" bgcolor="#4A8A00" onMouseOver="this.style.background =''#9CCB52''" onMouseOut="this.style.background=''#4A8A00''"></td>
8.
...
9.
....
[/html]


and this is the second file to be link

[html]

1.
....
2.
....
3.
<td width="65" valign="top" width="65" height="44" border="1" vspace="2">
4.
<img src="<?php echo


这篇关于指向要在iframe中显示的另一个文件的相应链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆