Results 1 to 2 of 2

Thread: Site Logo/Watermark Script Open in New Browser Window

  1. #1
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Site Logo/Watermark Script Open in New Browser Window

    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.

    Sylvia

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    	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"
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •