Image mouse over script required
Thursday, March 2, 2006 by KCologne | Discussion: DesktopX
I'm in the process of designing my first desktop but I'm having a few issues with scripting a mouse over. I've managed to write a script that puts text up on a mouse over in a different location. What I currently have is a series of buttons that shortcut to several places. I also have a seperate image elsewhere on the desktop. What I'm after is a script to change the unrelated image with a new image when I mouse over the button!!
Please help as I'm going bald with frantic hair pulling trying to sort this.
Cheers in advance
KCologne
Reply #2 Thursday, March 2, 2006 5:33 PM
Reply #3 Friday, March 3, 2006 3:14 AM
Cheers for your input. At least I still have enough hair for a comb-over!!

Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Thursday, March 2, 2006 1:53 PM
But that may be more info than you need. One way to do this is to set up the separate image objects with different images for different states. Create an object and give it two custom states in the panels. Name the states "Default" and "MouseOverBtn1" for clarity, and assign each state the image you wish it to diplay when in that state. Give this object an Object ID, "My ImageObject"
Now, in your button object script you'll add these bits:
DesktopX.Object("MyImageObject").State = "MouseOverBtn1"
End Sub
Sub Object_OnMouseLeave
DesktopX.Object("MyImageObject").State = "Default"
End Sub
And, of course, if you desire a different image to be shown when you mouse over a different button, you can create a third state in the image object, and use a similar script in the second button (change over state to "MouseOverBtn2" for example).
I hope that helps to get you started, and that it's not too late to save some of yuor hair!