PDA

View Full Version : Targets with the Tabs Menus (mouseover)...



SachiSachi
05-19-2006, 12:39 AM
I can't seem to get this code to target an iframe. :( It's been a long time since I've done this kind of stuff, but in the
<a> tags I've been putting
target="framename". Is there something I'm doing wrong? Here's the code exactly:


<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1) -->
<a onMouseover="showit(0)">The World</a> | <a onMouseover="showit(1)">RPG</a><br>

<!-- Edit the dimensions of the below, plus background color-->
<ilayer width=400 height=32 name="dep1" bgColor="#E6E6FF">
<layer name="dep2" width=700 height=32>
</layer>
</ilayer>
<div id="describe" style="background-color:none;width:700px;height:32px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>


<script language="JavaScript1.2">

/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.

submenu[0]='<font size="2" face="arial,verdana,tahoma,georgia"><b><a href="http://www.javascriptkit.com/cutpastejava.shtml" target="frame">History of Wedgewood</a> | <a href="http://www.javascriptkit.com/javaindex.shtml">Races</a> | <a href="http://www.javascriptkit.com/javatutors/index.shtml">Map and Location Descriptions</a> | <a href="http://www.javascriptkit.com/java/">Applets</a> | <a href="http://www.javascriptkit.com/howto/">Web Tutorials</a></b></font>'

submenu[1]='<font size="2" face="arial,verdana,tahoma,georgia"><b><a href="http://freewarejava.com/applets/index.shtml">Character Profiles</a> | <a href="http://freewarejava.com/tutorials/index.shtml">FORUM</a> | <a href="http://freewarejava.com/javasites/index.shtml">Sites and Zines</a> | <a href="http://freewarejava.com/jsp/index.shtml">JSP</a></b></font>'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500

/////No need to edit beyond here


To save space I only copied the first half of it. :) Thank you!
~Sachi