Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding functionality by accessing the DOM
    primarykey
    data
    text
    <p>I am trying to add <code>mouseOver</code> and <code>Click</code> function to a <code>HTML</code> page with <code>JavaScript</code>. I have a <code>html</code> and <code>CSS</code> files that are not to be touched but the <code>JavaScript</code> file is to make drop down menus on the right with <code>mouseOver</code>, <code>Click</code> functionality to be added to the "Like" and "Hide" links that change to unlike and the "Hide" button is to hide the message box. While the "Refresh" gets a "onClick" button that is to add new message boxes to the page that are stored in an array that gets formed with the initialize function along with the functionality to the Menu on the right and the "Like" and "Hide" links and the "Refresh" Button.</p> <p>There are 4 <code>.png</code> files that I was not able to attach to the jsFiddle. They are supposed to change from 1-4 in the space next to the Friends Panel attomatically. see code <a href="http://jsfiddle.net/Sheeno_no_no/2VPEQ/#base" rel="nofollow">HERE</a></p> <pre><code>PASSWORD: Mypassword1 </code></pre> <p>The Drop Down Menu is not showing on the jsFiddle for some reason it can be viewed in FireFox.</p> <pre><code> function initialise(){ var msgs = new Array(); msgS = [ {title: 'Bob', img: 'bob.png', username:'Bob', userid: '@bob', msgtext: "Still waiting for a reply... What's the plan?" }, {title: 'Kurt', img: 'kvj.png', username:'Kurt', userid: '@kvj', msgtext: "So it goes..." }, {title: 'Robot', img: 'robot.png', username:'Robot', userid: '@robot', msgtext: "Don't worry... found some." }]; preloadHideDropDownMenu(); menuDropDownMouseOver(); preloadRotate(); var picture=0;//to be used with circulate setTimeout('circulate(picture)',3000); preloadLikeFunction(); preloadHideFunction(); preloadRefreshLink(); } </code></pre> <p>This Function get executed when the page loads and sets up the MouseOver, Click funcions and the Array that holds the new message boxes that get loaded on click of the Refresh button.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload