PDA

View Full Version : need help : Pop-it menu Links to Open Specific Window Size



colombo
06-22-2006, 03:42 PM
I would like to Specify the target window size on some of the links but not all
but, i changed the linke to this...

linkset[0]='<a href="http://dynamicdrive.com">sample1</a>'
linkset[0]+='<a href="http://www.javascriptkit.com">sample1 Kit</a>'
linkset[0]+='<a href="http://www.codingforums.com">Coding Forums</a>'
linkset[0]+='<a href="http://www.cssdrive.com">Coding Forums/a>'
linkset[0]+='<a href="http://freewarejava.com">Coding Forums</a>'

I add that open windo size coding in to the every href ;.like this...

<a href="http://www.dynamicdrive.com/" target="_blank" onclick="window.open(this.href,this.target,'width=300, height=350, location=1, menubar=1, scrollbars=1, resizable=1, toolbar=1');return false">Dynamic Drive</a>

but, its not working for me...please can any one tell me how can i give open size window in to the popup menu bar

ddadmin
06-22-2006, 09:16 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

It's easier to define a custom open window function first. The result would look something like:


function customwindow(url){
window.open(url, "", "width: 500px; height: 600px")
return false
}

linkset[0]='<a href="http://dynamicdrive.com">Dynamic Drive</a>'
linkset[0]+='<a href="http://www.javascriptkit.com" onClick="return customwindow(this.href)">JavaScript Kit</a>'