HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... $OBJ_NAME.property or other possibiliy to script properties of objects
$OBJ_NAME.property or other possibiliy to script properties of objects
  View type:
I'm searching for a way to change the properties of a courselab object using javascript. I already had some success using functions like NextSlide(), ShowObject(), etc.
Now I want to display a notifier object which by default has a opacity level of 0 %. When the user hovers over the notifier the opacity level should increase to 40 %. To accomplish this I wrote a javascript action for the event onmouseover: $OBJ_24.opacity = 40; ... but that throws a javascript error.
Is there any possibility to achieve the above mentioned functionality without using two notifier objects?

Peter
 
Hi, Peter,

Properties of CourseLab objects are currently read-only. It is not regular DOM. But if you are experienced in JavaScript and CSS, then look please in the runtime.xml, locate the object, locate part of the object, that is really inserted in DOM, then find the object, which is capable to change opacity (some div, I think). Then use usual document.getElementById to address it and change opacity. Note, that opacity in IE and FF is defined in different ways.
Subject:
Message options
No additional options