Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Mechanic
Posted
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!
 
Posts: 4 | Registered: September 23, 2009Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Creative' Mechanic
Picture of Klimt
Posted Hide Post
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.
 
Posts: 1720 | Location: Vienna, Austria | Registered: July 17, 2006Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
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!
 
Posts: 4 | Registered: September 23, 2009Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Creative' Mechanic
Picture of Klimt
Posted Hide Post
Can you publish it to a trial site? It's going to stay there 24 hours.
 
Posts: 1720 | Location: Vienna, Austria | Registered: July 17, 2006Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
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
 
Posts: 4 | Registered: September 23, 2009Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
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.
 
Posts: 5067 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
Thank you so much for your help!
 
Posts: 4 | Registered: September 23, 2009Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.