if you want to add an event to an element from javascript use as follows
if (document.addEventListener
document.addEventListener(
document.addEventListener(
document.addEventListener(
}
else if (document.attachEvent) { // Remove event listeners from 'document' (IE&co).
document.attachEvent('onmo
document.attachEvent('onmo
document.attachEvent('onmo
}
here in the example above moveSlider,sliderMouseUp and moveSlider are function names to be fired when mousemove , mouseup and mousedown events.
Note that, there is no "()" in the function names specified.
try using like this. you can add events like this to the elements you want
Main Topics
Browse All Topics





by: VincentPugliaPosted on 2007-07-02 at 19:26:27ID: 19408312
Hi,
ributes.Ad d("OnClick ", "myFunction()");
Since I'm not an ASPer, what does the html for the above code look like once it is displayed on the page? That is, does it create a list (ul/li)? Do you have link where we can see it?
If not, I would suggest adding:
this.MainMenu.MenuItem.Att
From what you say, it is only applying to the 'parentNode'
Vinny