It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Does anybody actually use this forum?

Postby rachjm on Wed Apr 30, 2008 12:44 am

I didn't like it initially - but with the y offset set to -40 I have to admit it doesn't look too bad. Would still prefer if it wasn't there, but you're right - I may be nitpicking...

:)

I guess I'll just have to live with it. Thanks for responding so quickly - southern hemisphere? ;)

Everyone in the photoshop forum's northern, I think - all my posts get replies in the middle of the night...
Image
User avatar
rachjm
250+ Club
 
Posts: 363
Joined: Wed Mar 26, 2008 10:12 pm
Location: New Zealand

Postby rangana on Wed Apr 30, 2008 1:14 am

No worries..just get back if you're still stumped ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby rachjm on Wed Apr 30, 2008 3:14 am

Solved it! :D

The hover image now stays centered vertically to the cursor regardless of the browser window size. :) Here's what I ended up with (in case you're trying to solve a similar problem yourself!)

Changed this:
var xcoord=20
var ycoord=20

To this:
var xcoord=30
var ycoord=-h/2

---

And changed this:
ycoord=ycoord-h-20;

To this:
ycoord=ycoord

---

Thanks everyone for your input and for helping me get thinking along the right lines... :)
Image
User avatar
rachjm
250+ Club
 
Posts: 363
Joined: Wed Mar 26, 2008 10:12 pm
Location: New Zealand

Previous

Who is online

Users browsing this forum: No registered users and 5 guests