Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

size a pop-up window?

Status
Not open for further replies.

zavsays

Technical User
Apr 19, 2001
117
US
Hi Guys,
I want to make a pop-up widow that opens up when you click a link...and control the size of it. Does Dreamweaver have a command for this?
Thanks
 
Zav,

You can access a behavior through the bahavior window, the behavior is called "open browser window". Once you select it, you can double click and configure the dimensions of your window.

Hope this helps you out,
Dan
 
Oops. I responded too quickly! What you describe Dan opens a small window if you Roll your mouse Over the image.
What I really need it to do is to open a smaller window by Clicking on an image (link). This should be even simpler but I can't seem to figure it out.
 
click on windows>behaviors then highlight the link that has the behavior on it select the behavior and go to onclick sometimes i just cant take it...then i realize its already to late
 
There is an extension at MM called advanced open window that gives even more control. You can postiion where the pop-up appears and other stuff.

 
Hey ZAV,

Your problem is very simple. If you want to do it using DW, then you can do so using behaviour tab. WHen you select a behaviour, it will automatically give you onmouseover behaviour, which you need to change to onclick by clicking on it.
Alternatively, you may switch to code view and simply change the code, with you desired event specification on the image.
Or, using code, you can simply write as
<IMG SRC=&quot;URL&quot; onclick=&quot;javascript:window.open('abc.htm','windowname','window properties')&quot;>

See, its so simple.
CHEERS [smarty]
 
I am probably being dense, but coding makes my head hurt late at night....

year2000 could you run through that last bit of coding you suggested with examples. I can't work out if I'm supposed have an image or an HTML file in the new window.

I'm going to bed, it might make sense in the morning.

DJClare
 
It's that old &quot;replying to quickly&quot; trick again.

I've sussed how to do it on Dreamweaver now, so I don't need the code, thing is though, is there a quick and easy way of working out what size window I need to open?
 
I appreciate everybody's help and like you DJ, coding isn't easy for me to navigate. The problem was, when I tried to change the mouseover command to onclick, the main browser window ALSO changed to the link page (and it didn't before I touched the code). I just don't see an onclick command in the behaviors pallette or with the Advance Open Window that Nippi suggested (I'm on a Mac, Version 4). I know most people on this forum could have figured it out, but I was stumped.
Anyway, for me, salvation came in the form of This groovy little site generated the code immediately so I could just cut and paste my way back into my WSYWIG world.

Thanks again for your suggestions!
 
Of course I just located step-by-step instructions on how to do this by clicking the FAQS tab at the beginning of this forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top