FAQ
Products Showcase Download Extras Support
 
Home :: Support :: Community :: CourseLab Issues

$OBJ_NAME.property or other possibiliy to script properties of objects

$OBJ_NAME.property or other possibiliy to script properties of objects 
Author:  Peter Huppertz   [Member]
Date: 07.08.2008 12:32:31
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  
...
Re: (1) $OBJ_NAME.property or other possibiliy to script properties of objects 
Author:  Slav Shchinov   [Courselab Team]
Date: 15.08.2008 16:48:43
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.  
...

Reply

You can also post this message as registered user. [Log in]
Author:
E-mail:
Subject:
Options:  Notify me if there is a new reply
Message emoticon:
Message body:
Insert smilie into text:
 
Jump to thread: