Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
Web General Discussion
Opening link in a new fixed window|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Junior Mechanic |
Hi there,
I am needing some help for creating a link that opens on a new fixed window. Below is the code I am using. <a href="javascript:void(0)" class="pics" onclick="window.open('test.html', 'Location Map', 'width=410, height=410, scrollbars=0, resizable=0')"> It is opening correctly but the status bar isnt reflecting "test.html". Instead it is reflecting the original page where the link is. When I rick-click to "open in new tab", it reopens the same page instead of "test.html". Any ideas on how to fix this would be appreciated. Thanks in advance! |
||
|
|
Honorary 'Creative' Mechanic |
Can you post a link to your site or describe how you apply this code in SS? I assume that you use Link Editor to do that.
|
|||
|
|
Junior Mechanic |
Hi Roma,
My site is not live yet so I will describe it. I have a contact us page(contactus.php) with a thumbnail of a map. When you click on the thumbnail, it will open up a new fixed sized window with the enlarged map (saved as map.html). At the moment, when i rollover the thumbnail, the status bar shows contactus.php. Upon clicking it opens to the map.html file, which is correct. But if I open in a new tab, it reopens contactus.php I hope this makes sense! =) Thanks! |
|||
|
|
Honorary 'Creative' Mechanic |
Can you publish it to a trial site? It's going to stay there 24 hours.
|
|||
|
|
Junior Mechanic |
OK , managed to get it up here
http://knuj.superfreehost.org/contacttest.php for some reason the new window is showing up blank but thats ok. what i need help with is this - when you rollover the thumbnail of the map, you will see the status bar says contacttest.php....how do i make it say map.html intead? this is the code I have used <div id="map"><a href="#" class="pics" onclick="window.open('map.html', 'Location Map', 'width=410, height=410, scrollbars=0, resizable=0')"><img class="thumb" src="images/mapsm.jpg" alt="Location Map" /></a> Thanks |
|||
|
|
Guru 'Geezer' Mechanic |
Browsers are designed to reflect the link in the status bar when the mouse rolls over the link. Since your link is set to "#", which is the notation for a bookmark link on the same page, then you get the page name displayed i the status bar. When you had the link set to "javascript:void(0)", I should have shown that as a link.
Since the link being displayed is controlled when the mouse rolls over the link, add some onmouseover code to your link to display what you want your visitors to see, and a onmouseout code to reset the status display. For example: <div id="map"><a href="#" class="pics" onclick="window.open('map.html', 'Location Map', 'width=410, height=410, scrollbars=0, resizable=0')"
onmouseover="window.status='map.html'"
onmouseout="window.status=' '"
><img class="thumb" src="images/mapsm.jpg" alt="Location Map" /></a> If you had used SiteSpinner to build your page, you could have used the pop-up window option of the link editor to do this.
|
|||
|
|
Junior Mechanic |
Thank you so much for your help!
|
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
Web General Discussion
Opening link in a new fixed window
