Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 02-27-2004, 10:53 AM setting page width
Junior Talker

Posts: 2
Trades: 0
hello,


i have a problem & was wondering if anyone knew of a way to help, I couldn't frind a thread on the forum talking about this.

I need to open a page in a pop up from my main page. The pop up has to be a fixed width (400 X 400) window, the tricky part is it has to open from a drop down menu (created in fireworks) that won't allow me to include the usual "onclick openbrowser" code.

Is there a way of setting a page to open at a fixed width when it loads?


thanks in advance for any suggestions, mark.
beachparty is offline
Reply With Quote
View Public Profile Visit beachparty's homepage!
 
 
Register now for full access!
Old 02-27-2004, 11:18 AM
Wenslock's Avatar
Webmaster Talker

Posts: 746
Location: Lincoln, UK
Trades: 0
<SCRIPT LANGUAGE="JavaScript">
function OpenNewWindow(url) {
window.open(url,"",'width=400,height=400');
}
</SCRIPT>

then whilst in an anchor (<A>) type "HREF="javascript:OpenNewWindow('URL here')"><"Image"></A>
__________________
------------------------------------------------------------

Please login or register to view this content. Registration is FREE
- Black Prism professional web design services
------------------------------------------------------------
Wenslock is offline
Reply With Quote
View Public Profile
 
Old 02-27-2004, 11:30 AM
Junior Talker

Posts: 2
Trades: 0
ok problem solved, had to embed that javascript into the menu code. works perfectly now, thanks, mark.

Last edited by beachparty; 02-27-2004 at 01:43 PM..
beachparty is offline
Reply With Quote
View Public Profile Visit beachparty's homepage!
 
Reply     « Reply to setting page width
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.11129 seconds with 12 queries