Welcome Guest (184.72.184.104)! (Login - Register)

Home - FAQs - Forums - Join a Game - Game Index - Links

More Fun with Java (Topic #27530)

Main Forum (#13) > General Discussion (#934) > More Fun with Java

Roleplay Market



Subscription Options

You must be logged in to subscribe to this topic by e-mail or to add it to your favorites.



Support RPM through Kachingle or Flattr:


Post Reply
Body
cobaltvector
avatar
Dungeonkeeper
6/19/2009 12:29:50 PM
PostID: 291328
A wonderful site for HTML/Java tutorials W3schools.com

Here is yet another thing I have been playing around with: Image switching!!

It's really easy to include JavaScript in an img line to allow the image to switch back and forth during mouse over.

I'm going to use it two switch between 2 images of Chicago.




Here is the code used:
<img src="Inital Image" style="width: 400px; height: 198px;" onmouseOver=src="Secondary Image" onmouseOut=src="Final or Initial Image.">

'style' defines the size of your image.

'onmouseOver=' defines what occurs when the mouse is pulled over the image. In this case we are pulling up a new image by including the src=" ".

'onmouseOut= defines what occurs when the mouse is pulled away from the image. In this case we are returning to the prior image by including the src=" ".

Note: With slower internet connection you may have to hold the mouse over the image for a while to see the change the first time the page is loaded. This is because the image has to be loaded.
   Like this post
cobaltvector
avatar
Dungeonkeeper
6/19/2009 12:35:16 PM
PostID: 291329
You can also use my post on creating Image Buttons in tandem with the above.

Click on me:


  This post last edited on 6/19/2009 12:45:23 PM   Like this post
GreatNOD
avatar
Monsterkeeper
10/2/2009 11:01:08 AM
PostID: 308357


This came from last Friday's
FARK mugshot roundup thread

I crack myself up
  This post last edited on 10/2/2009 11:08:28 AM   Like this post
page  of 1 pages containing 3 items.Items per page:

Your Ad Here

Home - Control Panel - FAQs - Forums - Join a Game - Create a Game - Game Index - User Directory - Privacy Policy -
System Time: 5/22/2013 10:51:33 PM
RPG,D&D Library