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
    New Coder
    Join Date
    Nov 2004
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    javascript tutorial

    Does anyone know of a javascript tutorial on the properties of pictures
    Code:
    document.mypic.something

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    give the picture an id

    <img id="mypic" etc etc etc>

    then reference the picture like this

    <head>
    <SCRIPT LANGUAGE="Javascript">

    document.getElementById("mypic").style.visibility=hidden;

    </script>
    </head>

    or type picture properties javascript tutorial at google?

    try document.getElementById("mypic").style.visibility=visible;

    document.getElementById("mypic").style.top=300;
    document.getElementById("mypic").style.left=300;
    document.getElementById("mypic").src="http://www.mypic.com";

    hope this helps you!


  •  

    Posting Permissions

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