Reply
Coding for size of new windows
Old 10-06-2003, 06:28 PM Coding for size of new windows
brit

Posts: n/a
I have noticed that some links when clicked open in a specific sized new window... Does anyone know the coding for this, and where in a script it would go.

Thanks, Brit
Reply With Quote
 
When You Register, These Ads Go Away!
     
Old 10-06-2003, 09:28 PM
Novice Talker

Posts: 5
<script>
function window(url){
window.open(url, "remote", "width=20, height=20, noresize, scrolling=yes");
}
</script>
<a href="javascript:window(http://www.google.com)">Open new window</a>

It looks somthing like this. I am kinda rusty at java script tho. But thats the way you do it. If it does not work i will look it up in my refrence book for javascript.
epo35 is offline
Reply With Quote
View Public Profile
 
Old 10-07-2003, 05:01 AM
scottfree's Avatar
Extreme Talker

Posts: 234
Location: Hamburg
You could also try this if you donīt want to implement the function:
<a href="#" onClick="javascript:window.open('/images/pic.jpg','picture','width=525,height=700,left=10,t op=10'">
<img src="/images/zoom/pic.jpg" width=150><br>Zoom</a>

the href="#" prevents having to reload the current page.
the 'width' and 'height' gives the size of the window, the 'left' and 'top' give the window position after these you can add scrollbars, resize, toolbars etc. if you want them displayed but this is normally not used.
__________________
I think, therefore I am..... I think.
scottfree is offline
Reply With Quote
View Public Profile Visit scottfree's homepage!
 
Old 10-07-2003, 09:19 AM
Omega's Avatar
Extreme Talker

Posts: 234
Location: Sharpsville, PA
Try this!
__________________
-----------------------------------------------
Current Projects:Texas Silver Rush | Back In The Day Sports

Omega Media Design
Omega is offline
Reply With Quote
View Public Profile Visit Omega's homepage!
 
Old 10-07-2003, 03:05 PM
brit

Posts: n/a
Thanks!!
Reply With Quote
 
Reply     « Reply to Coding for size of new windows
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13473 seconds with 13 queries