Forum Moderators: open
<td align="center">
<select name="MainMenu" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Please Choose from here</option>
<option value="sparkling_hearts.html#1">Necklace,Earrings & Bracelet Set - $40.00</option>
<option value="sparkling_hearts.html#2">Necklace & Bracelet - $35.00</option>
<option value="sparkling_hearts.html#3">Necklace & Earrings - $30.00</option>
<option value="sparkling_hearts.html#4">Bracelet & Earrings - $20.00</option>
<option value="sparkling_hearts.html#5">Necklace - $25.00</option>
<option value="sparkling_hearts.html#6">Bracelet - $15.00</option>
<option value="sparkling_hearts.html#7">Earrings 1 - $10.00</option>
<option value="sparkling_hearts.html#8">Earrings 2 - $10.00</option>
<option value="sparkling_hearts.html#9">Earrings 3 - $10.00</option>
</select>
</td></TR></TABLE>
when I click on any of these options it just goes to the first product
<snip>
also another problem I have is opening those options in a new page as I have tried to put target_blank in the link and it does not work
thank you will appreciate any help
[edited by: BlobFisk at 9:11 am (utc) on Feb. 27, 2008]
[edit reason] Removed URL [/edit]
not sure about the url anchor.
try url encoding the pound/hash character (#) by replacing with its hex equivalent (%23).
for the target, you could change the MM_jumpMenu to make it conditional on targ to do something like:
window.open(selObj.options[selObj.selectedIndex].value, targ, "resizable=yes,scrollbars=yes,status=no");
function MM_jumpMenu(targ,selObj,restore){ //v3.0
if (targ=='blank') {
window.open(selObj.options[selObj.selectedIndex].value)
return
}eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
You don't want to target "parent", since it will clear that frame, including its childrens frames and the one your page is in.
"blank" will open a new window
Possible values for targ:
* _blank: blank
* _parent: parent
* _self: self
* _top: top
* FrameName: parent.FrameName or top.FrameName (depending on the hierachy of framesets)
I've tested and the target page always scrolls to the correct position depending on the #xyz. (verify that your page actually contains the correct anchors)