DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2006

    Newbie needs help with images

    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


  2. #2
    Join Date
    Feb 2006
    Cologne - Germany
    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

  1. images problem in website
    By jabbarsb in forum ASP.NET
    Replies: 0
    Last Post: 05-11-2006, 07:32 AM
  2. Uploading Multiple Images In ASP
    By dibakar in forum VB Classic
    Replies: 0
    Last Post: 11-10-2005, 05:41 AM
  3. Replies: 0
    Last Post: 10-29-2001, 01:55 PM
  4. loading images dynamically is slow
    By Michael Shutt in forum Web
    Replies: 0
    Last Post: 06-26-2001, 02:25 PM
  5. Re: We don't get round trips...
    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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.