Results 1 to 10 of 10

Thread: Site Logo/ Watermark

  1. #1
    Join Date
    Jan 2008
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Site Logo/ Watermark

    1) Script Title: Site Logo/ Watermark

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

    3) Describe problem: I'm not having a problem with the script, and I figure it has to be possible, but instead of having the watermark positioned in the corner, I would like it centered on the bottom of the page. Does anybody have and idea how to pull it off, as I have no idea where that's located in the script?

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

    Default

    Try finding the below line inside the .js file:

    Code:
    var x=$window.scrollLeft() + (is1or3? this.offsets.x : $window.width()-this.$control.width()-this.offsets.x)
    and change that to:

    Code:
    var x=$window.scrollLeft() + $window.width()/2-this.$control.width()/2
    DD Admin

  3. #3
    Join Date
    Jan 2008
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I tried your suggestion and I can't see that it made a difference. If you want to look at my code it is at http://www.jobs4teens.us/PRCA/index.php. I really like the feel of it, but I would like the bottom image centered.

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

    Default

    Ah yes, there is an additional change you also need to make. Find the below line:

    Code:
    .css(mainobj.coord)
    and change that to:

    Code:
    .css(mainobj.coord, left:mainobj.offsets.x + $window.width()/2-mainobj.$control.width()/2)
    Untested, but that should do it.
    DD Admin

  5. #5
    Join Date
    Jan 2008
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I changed it and Dreamweaver told me there was a syntax error in that line, and when I tried to refresh the page, the script didn't launch. I hate to be a pest, but Java is not my strong point when it comes to web design, so I have no idea.

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

    Default

    Ok, try the below attached .js file. It incorporates the changes above and fixes an issue with it.
    DD Admin

  7. #7
    Join Date
    Jan 2008
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    ok, I uploaded your file, changed the image to what I want down there, but the problem now is that the left side of the image is in the center of the bottom, not the center of the image. If you want to see what I mean, http://www.jobs4teens.us/PRCA/index.php

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

    Default

    Inside the .js file, try giving the image explicit width/height attributes when defining it:

    Code:
    logoHTML: '<img src="/PRCA/images/meadow.png" style="border:0;width:400px;height:150px" />', //HTML for logo, which is auto wrapped in DIV w/ ID="mysitelogo"
    DD Admin

  9. The Following User Says Thank You to ddadmin For This Useful Post:

    sdzeltwanger (02-11-2010)

  10. #9
    Join Date
    Jan 2008
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Now I feel kind of dumb. Now it works great, thanks.

  11. #10
    Join Date
    Jan 2008
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I hate to ask for help again; but I just looked at my page in IE and learned about the transparent .png glitch and was wondering if there was any way to use the AlphaImageLoader with this script.

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
  •