-
mouseover color on link from text file
I've got a flash movie that is reading a text file and outputting the data to a scrollable text field. The text field's html property is set to true and it's working. In the text file are a bunch of links. The client wants a mouseover effect for all the links, but I can't figure out how to do this or if I even can. I've tried doing something like
onMouseOver="(this.style.color='black')" onMouseOut="this.style.color='#CCCCCC;')" or
onMouseOver="(this.style='color:black;')" onMouseOut="this.style='color:#CCCCCC;')"
but neither work. Is there another way to accomplish this? Thanks.
-
TurquoiseGala.org
x-Sellus Shopping
NYOC.net
-
this.style.color='black' is css. any other ideas? thanks.
-
Hi Tyler,
I prefer using variables.
Try putting in a movieClip:
Code:
var httpLink:string = "http://" + "";
if (textField.text == httpLink) {
httpLink = blue;
}
same goes for Visited links and active links.
My questions:
1) how would you convert above AS script into a timeline frame?, since if/ else statements can't be used!,? (could you show me the frame code version, please?)
2) in CSS, how would you define the syntax:
BODY { background-position:right:top}
and
BODY { background-position:right:bottom}
in code like (but this isn't legal):
BODY { background-position:right:top,bottom}
, even if putting down each code on seperate lines, then only the latter will overrule (thus not on the right bottom hand side)
3) What body attribute enables me to set a default size for BODY {border:dashed};
(meaning, if i have only one word written down within the <body></body> tag, now the border is also that short (3 lines), instead of the border being the size of the page, which i would like to have a default of 640 pixels (hmm.. that is about 30 lines)
Last edited by johnwhello; 04-12-2006 at 07:57 PM.
http://www.michaellobry.com specialized by and for Web Media Designers. Herein shown should be summarizings about Web Media Design (eg. all CSS rules, SHTML tags, How to PHP, Macromedia/ Adobe app how-tos, etc. Please e-mail yours to webmaster@michaellobry.com so that everybody learns)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|