PDA

View Full Version : linked windows size in script



mailtosaleh
02-09-2007, 01:58 PM
1) Script Title:
News Bar script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex2/newsbar.htm
3) Describe problem:
actually it is not a problem but I want some modification to links, I want the new window which will be opened when link is clicked to open a new small window ( i.e. 200 x 200 ) not a full size new window

thetestingsite
02-09-2007, 02:09 PM
Find this in the script:



function goURL(){
location.href=msg_url[count];
}


And change the part in red to the following:



window.open(msg_url[count], 'newwin', 'height=200,width=200, resizable, scrollbars=yes');


Not tested, but should work.

Hope this helps.

mailtosaleh
02-09-2007, 03:23 PM
Tks, it is great, I spent 7 days lQQking for a solution, really Thank you