Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, 7th_zorro, alibaba), 913 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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