-
Newbie needs help with images
Hi,
Please make alowences as i am new to java (very new) I have a flash page in which the images move based on the x coordanate of the mouse (Flash version here). I would like to do the same on a page using java and have found a script that links an image to the mouse but i dont know how to change the values in it to a pecentage.
At the moment it offsets the image by a pixcel value (That i can change) but if i put a % sing in it doesnt evan display the image. Any help would be good, check out the above link to see what im on about.
Many thanks in advance
Hassan
-
well:
you are talking about javascript. this is a java forum. there is a difference between them.
if the offset is defined within javascript, you can't use %. you will have to convert pixels to percentace and vice versa by calculating it. use the rule of proportion for that.
Similar Threads
-
By jabbarsb in forum ASP.NET
Replies: 0
Last Post: 05-11-2006, 07:32 AM
-
By dibakar in forum VB Classic
Replies: 0
Last Post: 11-10-2005, 05:41 AM
-
Replies: 0
Last Post: 10-29-2001, 01:55 PM
-
By Michael Shutt in forum Web
Replies: 0
Last Post: 06-26-2001, 02:25 PM
-
By Avron Polakow in forum Web
Replies: 1
Last Post: 11-06-2000, 02:09 PM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks