Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi
I have a domain redirecting to some free web space. Everything is fine, if i create standard html pages with links the URL is always static, the real url is never displayed.
However, I'm using the following Java Script to create a drop down, but this breaks the URL mask and the real web address is displayed.
<script language="JavaScript" type="text/JavaScript">
</script><div align="left">
<table width="801" border="0">
<tr>
<td><div align="center">
<form name="form1">
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option value="******.htm" selected>****</option>
<option value="****.htm">Computers</option>
<option value="****.htm">***</option>
<option value="****.htm">***</option>
</select>
</form>
</div></td>
</tr>
</table>Does any one know a way around this?
Cheers,
Rob

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

The problem is this:
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">This tells MM_jumpMenu to replace the parent (very top page, where the url is) to the page.
Try changing it to:
<select name="menu1" onChange="MM_jumpMenu('window',this,0)">
or, better yet,
<select name="menu1" onChange="MM_jumpMenu('document',this,0)">Good luck,
-SN

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |