View Single Post
  #1 (permalink)  
Old 09-15-2008, 06:11 AM
mamola500 mamola500 is offline
WebProWorld New Member
 
Join Date: Aug 2008
Posts: 3
mamola500 RepRank 0
Default JavaScript problem

Hi All,

I am trying to create a JavaScript solution that will allow me to turn off the JS dependent on the page configuration. I have developed a multi-skinned web app that uses exactly the same pages for the different skins. My problem is that on skin A i want rollover action on the navigation buttons, but on skin B (which uses the same code, same page - just different CSS) i do not want JS mouseover/mouseouts on the navigation.

I have tried to store a variable on page load in an asp.net control, but am not able to read the control through javascript. Something like:-

function mouseOver8()
{
var test = document.getElementById('<%= strStyleHide %>');
}

Where strStyleHide has a value stored
alert(test) - returns nothing

any help much appreciated

Thanks
Reply With Quote