Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts

    Exclamation Adding a caption at startup.

    If you look at my website (at the bottom, in the signature.)
    The opening page comes up with a picture of the front of my house. (23moss.png)
    If you then go to the menu and select "Home", a caption is added to the picture.
    I have been trying to get this to load with the initial load but so far I have had no luck.

    Any pointers gladly received.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Add
    Code:
    document.getElementById('test').innerHTML=desc[0];
    above the following line in the script in your home page.
    Code:
    lis=document.getElementById('nav').getElementsByTagName('li');
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    effpeetee (06-21-2010)

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by abduraooft View Post
    Add
    Code:
    document.getElementById('test').innerHTML=desc[0];
    above the following line in the script in your home page.
    Code:
    lis=document.getElementById('nav').getElementsByTagName('li');
    Thanks abduraooft.

    That's exactly what I wanted. I wish that I could find some way to learn javascript with my gammy eyes. I posted the post here because I thought that it would need to be done with CSS.

    Many thanks,

    Frank

    EDIT: Just found this, looks promising.
    Last edited by effpeetee; 06-21-2010 at 12:19 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

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