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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Dreamweaver List / Menus part 2
Old 11-22-2004, 06:25 AM Dreamweaver List / Menus part 2
Novice Talker

Posts: 6
Trades: 0
Thanks to excellent advise from this forum, I managed to find a code that opens up list/menu-links in a separate window.

However, I want these links to open up in a secific form, with these values:

- width: 800
- lenght: 700
- left: 200
resizable:yes
scrollbars: yes
top: 80

Has this anything to do with frame and frameset target values? Unfortunately, scripting like this is a language that Im very much new to. Is there anyone out there who can write me the code for this, unless there is too much hazzle with it...?

Thanks to anyone who will be able to give me some advise!

Sturle
sturle is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-22-2004, 06:42 AM
Ultra Talker

Posts: 377
Trades: 0
Smth like:
<a href="#" onClick="window.open('yoururl.htm','title of a window','width=800;length=700;left=200;resizable=y es;scrollbars=yes;top=80;'')">Open in a new window</a>
It's a JS.
__________________
andrews_john

Please login or register to view this content. Registration is FREE
andrews_john is offline
Reply With Quote
View Public Profile Visit andrews_john's homepage!
 
Old 11-22-2004, 06:54 AM
Novice Talker

Posts: 6
Trades: 0
Thanks for the reply andrews_john!

The code you showed me is rigthfully so the one that I use for pop-ups, however, if I want to apply the same values to a list/menu, the coding-layout (if I can call it that) of the linking is different.

My question is then; where and how do I insert these values in the script below:

In 'Head':
<script language="JavaScript">

// Set the target window or frame
// _top opens in the same window
// _blank opens in a new window
// Use the frame name to open to a frameset target
var theTarget = "_blank";

function goThere(){
if(!document.theForm.theMenu.selectedIndex==""){
window.open(document.theForm.theMenu.options[document.theForm.theMenu.selectedIndex].value,theTarget,"");}}
</script>

In 'Body':
<form name="theForm">
<select name="theMenu" onChange="goThere()">
<option selected value="">Select a city
<option value="http://www.bbc.co.uk/weather/5day.shtml?world=0065" selected>Rome
(Italy) </option>
</select>
</form>

As always; thanks for any help!
sturle is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dreamweaver List / Menus part 2
 

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 1.20463 seconds with 12 queries