如何使用脚本(java或其他一些脚本)更改html中的目标框架链接?

时间:2013-04-05 00:20:16

标签: html

我是这个论坛的新手。我在顶部有几个图像按钮,当我点击每个图像将打开底部框架(对象)上的链接..我尝试了几行。但我只有一个静态链接工作。但我希望每个按钮都有不同的链接。

<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>New Web</title>
</head>

<body>

<div style="margin: 0 auto; width:1107px; height:1512px;">
     <p><img border="0" src="images/Home.jpg" name="home" onclick="OnButton1();" width="95" height="94">&nbsp;
    <img border="0" src="images/googlemaps.jpg" name="googlemap" onclick="OnButton1();" width="91" height="90">&nbsp;
    <img border="0" src="images/restaurants1.jpg" width="93" height="91">&nbsp;
    <img border="0" src="images/barsclubs.jpg" width="99" height="94">&nbsp;
    <img border="0" src="images/spa1.jpg" width="110" height="94">
    <img border="0" src="images/taxishuttle.jpg" width="97" height="95">&nbsp;
    <img border="0" src="images/airline1.jpg" width="111" height="97"><img border="0" src="images/tourattractions.jpg" width="102" height="96">
    <img border="0" src="images/couponsdeals.jpg" width="100" height="96">
    <img border="0" src="images/shopping1.jpg" width="93" height="96"></p>
 <object type="text/html" data="http://www.yahoo.com/"
            style="width:100%; height:39%; margin:1%">
    </object>

</div>
</body>

</html>

0 个答案:

没有答案