|
查看: 767|回复: 5
|
html菜鳥救助與iframe問題!!
[复制链接]
|
|
|

我做了一個main page,有幾個hyperlink botton (Introduction.html, defination1.html,defination2.html,defination3.html,treatment.html & contact.html)
在網頁中引用了iframe,我想用iframe製作另一個page,只要我按mainpage的hyperlink button,那麽iframe就會跳去別的page(但main page沒有跳)
因爲我只會basic html command,所以請各位賜教一下。
以下是我的html code,請幫忙更改一下 |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 9-3-2008 11:39 PM
|
显示全部楼层
我知道iframe 的 src不可能只放一個page的link,但我就是想不到有什麽辦法。。
<html><head><title>Leukemia</title></head>
<body topmargin="0" leftmargin="0" bgcolor="#000000" marginheight="0" marginwidth="0" text="#333333">
<table bgcolor="#000000" border="0" cellpadding="0" cellspacing="0" height="30" width="100%">
<tbody>
<tr>
<td height="30" valign="bottom" width="61"></td>
<td height="30" valign="bottom" width="749">
<table bgcolor="#000000" border="0" cellpadding="0" cellspacing="0" height="17" width="370">
<tbody>
<tr>
<td height="17" width="60"></td>
<td height="17" width="94"><a href="Introduction.html"> <img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/introduction.gif" alt="Introduction" border="0" height="17" width="94"></a></td>
<td height="17" width="94"><a href="defination1.html"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/defination.gif" alt="Defination 1" border="0" height="17" width="94"></a></td>
<td height="17" width="94"><a href="defination2.html"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/defination 2.gif" alt="Defination 2" border="0" height="17" width="94"></a></td>
<td height="17" width="94"><a href="defination3.html"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/defination 3.gif" alt="Defination 3" border="0" height="17" width="94"></a></td>
<td height="17" width="94"><a href="treatment.html"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/treatment.gif" alt="Treatment" border="0" height="17" width="94"></a></td>
</tr>
</tbody>
</table>
</td>
<td align="left" height="30" valign="bottom" width="191"><a href="contact.html"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/contact_menu.gif" alt="Contact" border="0" height="17" width="94"></a></td>
<td height="17" width="1"></td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
<tbody><tr bgcolor="#333333">
<td bgcolor="#000000" valign="top" width="60" height="265"></td>
<td bgcolor="#555555" valign="top" width="1" height="265"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/web/%9Fo%C1%CF%CB%D8%B2%C4%20-%20BEIZ%20Graphics%20Web_files/spacer.gif" border="0" height="1" width="1"></td>
<td align="left" bgcolor="#333333" valign="top" height="150">
<table border="0" cellpadding="0" cellspacing="0" height="200" width="91%">
<tbody>
<tr>
<td height="24"></td>
</tr>
<tr>
<td bgcolor="#404040" height="12"> <iframe name=many marginwidth=5 marginheight=0 scrolling=yes width=100% height=500 src=introduction.html scroll=no border=10 frameborder=10></iframe></td>
</tr>
</tbody>
</table>
</table>
[ 本帖最后由 mancai 于 9-3-2008 11:51 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
发表于 10-3-2008 10:26 AM
|
显示全部楼层
你试试
<html><head><title>Leukemia</title></head>
<body topmargin="0" leftmargin="0" bgcolor="#000000" marginheight="0" marginwidth="0" text="#333333">
<table bgcolor="#000000" border="0" cellpadding="0" cellspacing="0" height="30" width="100%">
<tbody>
<tr>
<td height="30" valign="bottom" width="61"></td>
<td height="30" valign="bottom" width="749">
<table bgcolor="#000000" border="0" cellpadding="0" cellspacing="0" height="17" width="370">
<tbody>
<tr>
<td height="17" width="60"></td>
<td height="17" width="94"><a href="Introduction.html" target="many"> <img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/introduction.gif" alt="Introduction" border="0" height="17" width="94"></a></td>
<td height="17" width="94"><a href="defination1.html" target="many"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/defination.gif" alt="Defination 1" border="0" height="17" width="94"></a></td>
<td height="17" width="94"><a href="defination2.html" target="many"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/defination 2.gif" alt="Defination 2" border="0" height="17" width="94"></a></td>
<td height="17" width="94"><a href="defination3.html" target="many"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/defination 3.gif" alt="Defination 3" border="0" height="17" width="94"></a></td>
<td height="17" width="94"><a href="treatment.html" target="many"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/treatment.gif" alt="Treatment" border="0" height="17" width="94"></a></td>
</tr>
</tbody>
</table>
</td>
<td align="left" height="30" valign="bottom" width="191"><a href="contact.html"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/project/picture/contact_menu.gif" alt="Contact" border="0" height="17" width="94"></a></td>
<td height="17" width="1"></td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
<tbody><tr bgcolor="#333333">
<td bgcolor="#000000" valign="top" width="60" height="265"></td>
<td bgcolor="#555555" valign="top" width="1" height="265"><img src="file:///C|/Documents%20and%20Settings/mancai/Desktop/web/%9Fo%C1%CF%CB%D8%B2%C4%20-%20BEIZ%20Graphics%20Web_files/spacer.gif" border="0" height="1" width="1"></td>
<td align="left" bgcolor="#333333" valign="top" height="150">
<table border="0" cellpadding="0" cellspacing="0" height="200" width="91%">
<tbody>
<tr>
<td height="24"></td>
</tr>
<tr>
<td bgcolor="#404040" height="12"> <iframe name=many marginwidth=5 marginheight=0 scrolling=yes width=100% height=500 src=introduction.html scroll=no border=10 frameborder=10></iframe></td>
</tr>
</tbody>
</table>
</table> |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 10-3-2008 11:43 AM
|
显示全部楼层
|
谢谢你,我回家try看,但iframe 那里的scr可以只point to introduction.html吗? |
|
|
|
|
|
|
|
|
|
|
发表于 10-3-2008 05:59 PM
|
显示全部楼层
原帖由 mancai 于 10-3-2008 11:43 AM 发表 
谢谢你,我回家try看,但iframe 那里的scr可以只point to introduction.html吗?
iframe 那里的scr只是load第一个page的。。。 |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 10-3-2008 07:45 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|