I use a javascript to invoke a jump menu - this is because I base my pages on templates and I am fed up with having to update every page when changing the jump menu (which I must do with some frequency).
So - it works well! But, I have lost the flexibility DW4 gives me to change the font inside the menu.
Does anyone know how to do this?
I attach the HTML and the script (I have abbreviated the number of aoptions for the sake of space).
My website is
Thanks.
Here's the HTML:
And here's the .js.
So - it works well! But, I have lost the flexibility DW4 gives me to change the font inside the menu.
Does anyone know how to do this?
I attach the HTML and the script (I have abbreviated the number of aoptions for the sake of space).
My website is
Thanks.
Here's the HTML:
Code:
<form>
<div align="left">
<script language="JavaScript1.2">
writeSelect();
</script>
</div>
</form>
And here's the .js.
Code:
myS=new Array();
// Option value, Option text
myS[0]=new Array("","----------Click on a villa name----------");
myS[1]=new Array("../summerplace.html","A Summer Place");
myS[2]=new Array("../almondhill.html","Almond Hill");
myS[3]=new Array("../amanoka.html","Amanoka on Discovery Bay");
myS[4]=new Array("../blueheaven.html","Blue Heaven");
myS[5]=new Array("../bumpersnest.html","Bumpers Nest at Tryall");
function writeSelect() {
mySPrint='<select name="mySelect" onChange="window.location.href=this.options[this.selectedIndex].value">';
for (var i = 0; i < myS.length; i++) {
mySPrint += '<option value="'+myS[i][0]+'">';
mySPrint += myS[i][1];
mySPrint += '</option>';
}
document.write(mySPrint+'</select>');
}
function setVariables(){
if (navigator.appName == "Netscape") {
v=".top=";dS="document.";sD="";y="window.pageYOffset"
}
else {v=".pixelTop=";dS="";sD=".style";y="document.body.scrollTop"}}
function checkLocation(){
object="object1";yy=eval(y);eval(dS+object+sD+v+yy);setTimeout("checkLocation()",1)
}