Results 1 to 6 of 6

Thread: Always on top message

  1. #1
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Always on top message

    http://www.dynamicdrive.com/dynamicindex10/topmsg.htm
    Above is the link to the Always on top message
    How do I change the font of the message? And can a graphic be inserted?

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Change the following.

    Code:
    var message='<b><font color=000000 size=5 face="font name here>Help us spread the word. Please <a href="../link.htm">link to us</a>!</font></b><img src="image url here">'
    The text formatting could be done with CSS, but as it's already using the <font> tag in the example, I shalln't confuse you.

    cr3
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    (hands Cr3 some quotation marks) You dropped these, sir.
    Code:
    var message='<b><font color="#000000 size=5 face="font name here">Help us spread the word. Please <a href="../link.htm">link to us</a>!</font></b><img src="image url here">'
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You are both wrong, um too strong, guilty of typos. Here is how it should look:
    Code:
    var message='<b><font color="#000000" size="5" face="font name here">Help us spread the word. Please <a href="../link.htm">link to us</a>!</font></b><img src="image url here">'
    It's all a bit confusing because the demo, originally written for NS4 and IE5 (or 4?) did not use proper syntax for current Mozilla based browsers but, according to the demo page, the script was updated. The message string was not.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, worked perfectly !!!!!

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Whoops, I missed one off the end of the colour. Numerical values don't need quotes, though it's usually a good idea to put them in anyway.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •