Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 13,851 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 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 | 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