Forums
This topic is locked
Any help to extent?
04 Aug 2001 01:36:14 chris pan posted:
I'm building a bevavior for mouseover event to set opacity to images.Does anyone know how to use "function applyBehavior()" to pass onmouseover
and onmouseout events to a specific tag for example
//img src="image.gif"
width="180" height="112" name="first"
onMouseOver="setOpacity('first','50')
onMouseOut="setOpacity('first','100')"//
[/code]
and ALSO to specify image name to
tag?????
the script that inserts the events is:
//////////
function applyBehavior() {
var linkId = escape(document.theform.linkid.value);
var colorNorm = escape(document.theform.colornorm.value);
var colorRoll = escape(document.theform.colorroll.value);
selObj = dreamweaver.getBehaviorElement();
if (!selObj) selObj = dreamweaver.getDocumentDOM().getSelectedNode()
setHandler(selObj,'onMouseOut','setOpacity (\'" + linkId + "\',\'" +
colorNorm + "\')');
if (linkId && colorNorm && colorRoll) {
return "setOpacity(\'" + linkId + "\',\'" + colorRoll + "\')"
}
else{
return "Please enter values to all fields."
}
}
/////////
BUT!! Some API function convert \" with "!!!!! the setHandler does not
take the varibles (\'" + linkId + "\',\'" + colorNorm + "\'), the return
works OK
Plus, I want to inserted and the Image name to tag from this script (as I
mentioned).
Please Mercy...
Replies
Replied 13 Aug 2001 10:58:40
13 Aug 2001 10:58:40 Waldo Smeets replied:
topic moved to appropriate forum.
Waldo Smeets - www.UDzone.com Webmaster
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Waldo Smeets - www.UDzone.com Webmaster
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>