How to make a pop up menu?
My client http://www.zenith-design.net/dasys/ wants a pop up menu on this site. I can't use pop up menu of dreamweaver because it doesn't work properly with templates. I'm now using a free menu but it doesn't seem to work with at least some Operas. Do you know any easy way to build a pop up menu (I don't know how to write it myself)?
-Teemu
karmaman posted this at 22:15 — 26th July 2004.
He has: 82 posts
Joined: Nov 2003
Hi maybe this will be of use http://javascript.internet.com/page-details/
good luck
Temudzin posted this at 09:01 — 27th July 2004.
They have: 42 posts
Joined: Jun 2004
Thanks, can you name any specific menu because it's such a hard job to test them all?
-Teemu
karmaman posted this at 20:15 — 27th July 2004.
He has: 82 posts
Joined: Nov 2003
try this.
<script LANGUAGE="JavaScript">
screenY) {
// make sizes a negative number to move left/up
padAmtY = (-30) + (height * -1);
// if up or to left, make 30 as padding amount
}
if((cursorX + width + padAmtX) > screenX) {
padAmtX = (-30) + (width * -1);
// if up or to left, make 30 as padding amount
}
if(navigator.appName == "Microsoft Internet Explorer") {
leftprop = cursorX + padAmtX;
topprop = cursorY + padAmtY;
}
else {
leftprop = (cursorX - pageXOffset + padAmtX);
topprop = (cursorY - pageYOffset + padAmtY);
}
}
else{
leftvar = (screenX - width) / 2;
rightvar = (screenY - height) / 2;
if(navigator.appName == "Microsoft Internet Explorer") {
leftprop = leftvar;
topprop = rightvar;
}
else {
leftprop = (leftvar - pageXOffset);
topprop = (rightvar - pageYOffset);
}
}
if(evnt != null) {
properties = properties + ", left = " + leftprop;
properties = properties + ", top = " + topprop;
}
closePopup();
popupHandle = open(url,name,properties);
}
// End -->
</script>
Test Width:
Test Height:
Test POPCLICK
Test POPCLICKCENTER
Test POPUP
Test POPUPCENTER
Free JavaScripts provided
by The JavaScript Source
Temudzin posted this at 10:25 — 29th July 2004.
They have: 42 posts
Joined: Jun 2004
Thanks a lot!
-Teemu
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.