SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry [HELP]createElement "DIV" Change other element position

    createElement "DIV" Change other element position
    <div id="aa"><img src="http://www.google.com/intl/en_ALL/images/logo.gif" /></div>
    <script>
    function ss(){
    var _div=document.createElement("div")
    _div.style.overflow="hidden"
    _div.appendChild(document.getElementById("aa"))
    document.body.appendChild(_div)
    }
    </script>

    <input type="button" value="button" onclick="ss()" />

  2. #2
    SitePoint Evangelist
    Join Date
    Mar 2006
    Location
    Sweden
    Posts
    451
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What seems to be the problem?


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
  •