Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, TedMar, Ayumi), 800 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
HTML Help Please #264439
05/06/09 10:01
05/06/09 10:01
Joined: Jul 2000
Posts: 11,321
Virginia, USA
Dan Silverman Offline OP
Senior Expert
Dan Silverman  Offline OP
Senior Expert

Joined: Jul 2000
Posts: 11,321
Virginia, USA
Hello!

I have a web page that has a button with a rollover affect. Clicking on the button reveals a hidden layer (popup). However, if the end-user has scrolled down the page a little and then clicks, the page instantly goes back to the top of the page (as if they went to a new page). I would like the page to stay right where it is when they click on the button. How would I do this?

By the way, I am using onClick with the button. The code looks like this:

Code:
<div id="papercarbutton"><a  href="#" onclick="P2H_Menu('PMpapercarbutton', 500, 0)"></a></div>



Professional 2D, 3D and Real-Time 3D Content Creation:
HyperGraph Studios
Re: HTML Help Please [Re: Dan Silverman] #264440
05/06/09 10:12
05/06/09 10:12
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
the first thing i would try is this:

<div id="papercarbutton"><a href="#" onclick="P2H_Menu('PMpapercarbutton', 500, 0); return false;"></a></div>

Re: HTML Help Please [Re: ventilator] #264459
05/06/09 11:57
05/06/09 11:57
Joined: Jul 2000
Posts: 11,321
Virginia, USA
Dan Silverman Offline OP
Senior Expert
Dan Silverman  Offline OP
Senior Expert

Joined: Jul 2000
Posts: 11,321
Virginia, USA
That did the trick! Thanks, ventilator!


Professional 2D, 3D and Real-Time 3D Content Creation:
HyperGraph Studios

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1