Results 1 to 4 of 4

Thread: Site Logo/ Watermark Script

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

    Default Site Logo/ Watermark Script

    1) Script Title: :: Site Logo/ Watermark Script


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

    3) Describe problem: Is it posible to use this script inside a frame? or is there an other script to do this.

  2. #2
    Join Date
    Mar 2011
    Posts
    2,144
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    Yes it is possible.

    All you need is two or three files. on one of them (EXAMPLE: page1.html), put the script that you linked too, on a second(EXAMPLE: page1.html), put some random text just to prove it works.

    Then on the third put

    Code:
    <frameset cols="25%,75%">
        <frame src="page1.html" />
        <frame src="page2.html" />
     </frameset>
    NOTE: I'm pretty sure frames are no longer supported with html5.

  3. #3
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Table

    Thank you, you are rigth frames is no longer suported, is it posible to use this scrpt to work into a table? or wath do you suggest?

    Thank You again

  4. #4
    Join Date
    Mar 2011
    Posts
    2,144
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    That depends, are you using the table for the layout of your page? If so you should google why not to use tables for web layout. Using divs and css is a much cleaner option.

    If you're not, you can just edit this line -


    Code:
    logoHTML: '<a href="http://www.dynamicdrive.com" title="Dynamic Drive"><img src="logo.png" style="width:50px; height:47px; border:0" /></a>', //HTML for logo, which is auto wrapped in DIV w/ ID="mysitelogo"
    to include a table. An example is

    Code:
    logoHTML: '<table width="500" height="500" style="background-color:blue;"><tr><td><a href="http://www.dynamicdrive.com" title="Dynamic Drive"><img src="logo.png" style="width:50px; height:47px; border:0" /></a></td></tr></table>', //HTML for logo, which is auto wrapped in DIV w/ ID="mysitelogo"

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
  •