Tyler Web Sites
 About  Articles Blogs Forums Submit Sponsor Contact
Tyler Forums
Candlestick Jack
Zoo Montage
Adobe Certified Expert, Photoshop CS
Macromedia Certified Dreamweaver Developer
Adobe Certified Expert, InDesign CS
Dana Bell www.saltatoria.com/dbell/resume/
 

Site Links

Site Links in Browsers can be difficult, in that you don't want to lose a visitor, and you don't know how the visitor likes to handle site links. Personally, I hate it when a site opens a new window each time I click an external link. And opening external sites is one of the things tylerwebsites.com is for. It doesn't take long before you end up with a dozen windows opened. So, for external sites, I name the window and use the same name each time. Generally, new sites opened with that name will use the previously named open window. It's an old tradition with me.

But, I noticed another problem observing some users. The opened window doesn't get the focus after it is first opened, and you can't directly set the focus for that window from the site tylerwebsites.com.

So, here's one of the tricks I used. Instead of opening the site directly, I open a relay site and pass it the name of the site I want to open. The code for that relay site is basically this.

<script language="javascript" 
type="text/javascript">window.focus();</script>
<?php
if(isset($_GET['url']))
{
$url = $_GET['url'];
echo "<meta http-equiv=\"refresh\" content=\"0;url=" .$url. "\">";
}
?>

You can call this page with various methods. I use a simple javascript window open command, with the name of the window being 'siteview'. After processing by your php or other code, it should look like this. Your options will vary.

<a href="http://www.thatsite.org/"
onClick="window.open('http://www.tylerwebsites.com/siterelay.php?
url=http://www.thatsite.org/','siteview','status=yes,menubar=yes,alwaysRaised=yes,
scrollbars=yes,resizable=yes,left=100,width=800,height=600');return false"></a>

 

 

About | Articles | Submit | Sponsor | Contact | Site Map

Copyright © 2009 Tyler Web Sites Page updated: January 4, 2009