User Profile

Collapse

Profile Sidebar

Collapse
kk11
kk11
Last Activity: Dec 1 '08, 08:01 PM
Joined: Nov 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I want to create a magnifyier that magnifies text in any webpage on mouse click, so I would prefer the 2nd one as it works with any content
    See more | Go to post

    Leave a comment:


  • I don't know how to do any of those
    See more | Go to post

    Leave a comment:


  • kk11
    replied to Adding onclick for all elements in webpage
    Thanks very much..got it fixed

    I also had another question...if I've a lot of content inside a div..
    like "When are you coming home?"

    and I need to get only "When are you" when I move my mouse over the first part of the div and when I move it over to the next part of the div, I want to get the rest of the text, ie, "coming home?"

    I get the whole stuff using innerHTML...
    See more | Go to post

    Leave a comment:


  • kk11
    started a topic Adding onclick for all elements in webpage

    Adding onclick for all elements in webpage

    Hi all,
    I've been trying to add onclick event to all elements in the webpage. But somehow it doesn't work. Any help would be greatly appreciated.

    Here's my code:

    Code:
    function getIt()
    {alert("Hello");}
    
    var list = document.getElementsByTagName('*');
    len = list.length;
    
    for(i = 0;i < len;i++)
    {
    obj=list[i].tagName;
    obj.onclick=getIt;
    }
    See more | Go to post
    Last edited by acoder; Nov 29 '08, 06:55 PM. Reason: Added [code] tags
No activity results to display
Show More
Working...