Newbie needs help with images


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Newbie needs help with images

  1. #1
    Join Date
    Jun 2006
    Posts
    1

    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

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

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


   Development Centers

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