| Author |
Simple Open Browser Window question!
|
|
| Paul Herbert 2004-04-30, 5:31 pm |
| Hello there!
This is probably me showing off my dreamweaver inexperience again but here we
go...
I want to have a rollover button image that once clicked will launch a new
browser window specified to a certain pixel size. No problem creating the
rollover but I find that I cannot add an "open browser window" behaviour unless
I give the image itself a link.
Ie. From design mode I can't see an option to open a new browser window
onclick until I assign a link to the image itself.
I'm sure there must be something I'm missing here.
PS I can get obviously get the browser window to pop up onload but I want it
specifically to lauch onclick.
Thanks for your help!
| |
| darrel 2004-04-30, 5:31 pm |
| > java script:;
> This is a null link that will not go anywhere but which will allow you
> to attach the Open Browser Window behavior.
And once you attach the behavior, go back and put in a real URL instead of
the null link. Null links are bad.
-Darrel
| |
| James Shook 2004-04-30, 5:31 pm |
| darrel wrote:
> And once you attach the behavior, go back and put in a real URL instead of
> the null link. Null links are bad.
>
> -Darrel
Just to make sure the page opens in two windows? Why open a new window,
then? I think I know what you are getting at but your response is
incomplete....
--James M. Shook
http://www.jshook.com
| |
| James Shook 2004-04-30, 5:31 pm |
| Select the object you want to open the window when clicked on. In the
Link field in the properties inspector, type:
java script:;
This is a null link that will not go anywhere but which will allow you
to attach the Open Browser Window behavior.
--James M. Shook
http://www.jshook.com
| |
| darrel 2004-04-30, 5:31 pm |
|
> Just to make sure the page opens in two windows? I think I know what you
are getting at but your response is
> incomplete....
Yes, you are probably right. ;o)
If you put a proper return false, like this:
<a href="page.html" onClick="window.open('page.html', 'windowname',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,r
esizable=yes,copyhistory=no,width=300,height=290');return false;">Text
Link</a>
It won't open in two browsers. Plus, people that don't have javascript can
still get to your page, and people with javascript that like to control
their own browser (opening links in new tabs or dragging to other windows)
can still use your link.
-Darrel
| |
| Paul Herbert 2004-04-30, 5:32 pm |
| Thanks for your help guys... all sorted!
Just to double check using the ;return false; " should mean there no loose
links? Hope so. I heard that when it comes to search engines they hate loose or
missing links.
Thanks again for your help!
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |