http://www.dynamicdrive.com/dynamici...pmenuindex.htm
i want the drop down menu to be center of the anchor link text.
so i would like to move the menu to the left a bit or the right
how would i do that? thank you
http://www.dynamicdrive.com/dynamici...pmenuindex.htm
i want the drop down menu to be center of the anchor link text.
so i would like to move the menu to the left a bit or the right
how would i do that? thank you
Add text-align:center to dropmenudiv:
#dropmenudiv{
text-align:center;
position:absolute;
border:1px solid black;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
}
i want the menu to be centered from trigger link.
the entire menu can be shifted left or right.
Well, the line:
within the script ultimately controls the left offset of the menu. You can add a number to it to increase its offset from the left edge of the link, for example:Code:dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
Code:dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+30+"px"
thank you. DD rocks. it is just simply what i was looking for.
i have another question.
menu1[0]='<a href="http://www.javascriptkit.com">JavaScript Kit</a><br>'
i tried to include a pop up windows java script within <a href>
menu1[0]='<a href="http://www.javascriptkit.com" onclick="NewWindow(this.href,'name','333','168','no');return false">JavaScript Kit</a><br>'
do know any other method to embede a pop up windows with just specific width and height and no other properties such as url, scrolling etc...?
target=_blank just doesn't cut.
thanks.
p.s. if i mouseover the trigger link for several times(3+), the error code on ie status bar reads:
Line: 138
Char: 1
Error: Object doesn't support this property or method
Code: 0
Last edited by vfx; 02-17-2005 at 12:39 AM.
I could be wrong, but I think you need to escape your single quotes. You're basically closing the string for the array element. Does anyone else have any thoughts?
Anyone got this script working properly under OSX/MSIE... the first drop down works good, but then buggers up after that.Originally Posted by vfx
PG
Bookmarks