View Full Version : Site Logo/Watermark Script Open in New Browser Window

03-02-2010, 05:07 PM
1) Script Title: Site Logo/Watermark Script

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex4/logo.htm

3) Describe problem: I need to have an image that is always visible on the page and clickable. When the user clicks on the image a larger version of the image will open in a new browser window.

Right now this script shows the image all the time but I can't click on it until I have scrolled past the height of 1 screen and then I can't figure out how to get it to open in a new broswer window.

Many thanks, great scripts by the way.


03-02-2010, 08:59 PM
The static logo should always be clickable actually, and not only when you've scrolled past 1 screen. As far as getting the link to open in a new window, just add a target attribute to the link inside the .js file:

logoHTML: '<a href="http://www.dynamicdrive.com" target="_new" title="Dynamic Drive"><img src="http://i40.tinypic.com/e7xmvm.gif" style="width:50px; height:47px; border:0" /></a>', //HTML for logo, which is auto wrapped in DIV w/ ID="mysitelogo"