www.webdeveloper.com
Results 1 to 2 of 2

Thread: What is wrong with this getelementById statement???

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    Sacramento, CA
    Posts
    64

    What is wrong with this getelementById statement???

    Speaking only of the syntax!???


    document.getElementById('thumb1').innerHTML='<img src='images/sacstatecapital.jpg'
    width='50' height='60' onMouseOver='document.bp_img.src=sac1.src'>';

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,252
    Code:
    document.getElementById('thumb1').innerHTML='<img src="images/sacstatecapital.jpg"
    width="50" height="60" onMouseOver="document.bp_img.src=sac1.src">';
    Untested, but for sure your ' characters are not nested correctly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles