PDA

View Full Version : Pop-up from scroller?



g8r
06-04-2005, 12:10 AM
I am using your message scroller script. I have been able to get links to open in a new page using target=blank. Ideally I would like to have a pop-up window from the scrolling link but in the alternative is it possible to define the new window size? I searched and could not find. Thanks

jscheuer1
06-04-2005, 04:29 AM
You would have to use something like this:
<a href="#" onclick="window.open('http://www.google.com/','win1','width=500,height=300');return false">Google</a>

g8r
06-04-2005, 12:55 PM
Thanks man! Even tho I couldnt get your exact script to work, it allowed me to figure something else out. This is what I used:

messages[0]="<font face='Arial'><a href='#' onclick=NewWindow('http://www.google.com/','mywin','500','300','no','center');return false>Google</a></font>"

BTW I think this is a great site for such a nube as myself. I have some other questions about this but I wil search first. Thanks Again! :D