Reply
On Click, Site goes to top of page
Old 02-08-2010, 07:34 PM On Click, Site goes to top of page
Novice Talker

Posts: 5
Name: Mike
Trades: 0
Hello,

This may turn out to be a CSS problem, but have an issue where everytime i click a link on a new site I am working on, the page scrolls automatically to the top.

Any help anyone could give would be much appreciated.

Mike
Wyoming
gwag is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 02-08-2010, 07:58 PM Re: On Click, Site goes to top of page
Average Talker

Posts: 23
Trades: 0
Maybe some more info about your code would be helpful.
I doubt if anyone can help you with the little info you provide about your problem, for instance what kind of link are you talking about? What are you trying to achieve, what you mean by scrolling to the top cause that's kinda normal with a hyperlink or?

So would be nice to have some more information about your problem.
TheSir is offline
Reply With Quote
View Public Profile
 
Old 02-08-2010, 08:03 PM Re: On Click, Site goes to top of page
Novice Talker

Posts: 5
Name: Mike
Trades: 0
check this out, there are a number of pop up links on the left site of the page, each one, when you open the pop up, it makes the page go to the top. There are also some links that are not set up yet and they do the same thing.

http://www.springcreekdesigns.net/services.html

I hope this helps clearify the problem.

Mike
gwag is offline
Reply With Quote
View Public Profile
 
Old 02-08-2010, 08:45 PM Re: On Click, Site goes to top of page
wongpk's Avatar
Extreme Talker

Posts: 178
Trades: 0
Because your link is #, which make the site go back to top. Try to use a different Javascript instead of the one you're using now to open the pop-up.
__________________
Regards,
Andrew
Weblog | simplyWP | zhng design studio
wongpk is offline
Reply With Quote
View Public Profile Visit wongpk's homepage!
 
Old 02-08-2010, 08:57 PM Re: On Click, Site goes to top of page
Novice Talker

Posts: 5
Name: Mike
Trades: 0
Thanks, I am not using java to make the pop up but I am using behaviors....is that what is screwing me up?

Mike
gwag is offline
Reply With Quote
View Public Profile
 
Old 02-08-2010, 09:17 PM Re: On Click, Site goes to top of page
Novice Talker

Posts: 5
Name: Mike
Trades: 0
also, when i remove the "#" then i get a message saying that I will loose javascript events on this link....
gwag is offline
Reply With Quote
View Public Profile
 
Old 02-09-2010, 03:40 AM Re: On Click, Site goes to top of page
Average Talker

Posts: 23
Trades: 0
Change your links to something like this:
Code:
<li><a href="PopUps/swancreek.html" class="a" onclick="MM_openBrWindow('/PopUps/swancreek.html','PopUp','width=310,height=350'); return false">American Made Candles </a> </li>
That should do the trick for the code how you have it, but the function for the pop-up is kinda unnecessary.

You can just the make links like:
Code:
<a href="PopUps/swancreek.html" onclick="window.open('PopUps/swancreek.html','popup','width=310,height=350'); return false">American Made Candles </a> </li>
That would give the same result and less coding.

Last edited by TheSir; 02-09-2010 at 03:47 AM..
TheSir is offline
Reply With Quote
View Public Profile
 
Old 02-09-2010, 10:08 PM Re: On Click, Site goes to top of page
Novice Talker

Posts: 5
Name: Mike
Trades: 0
Thank you, that works perfectly, I think I may have been having a blonde moment....
gwag is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to On Click, Site goes to top of page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11098 seconds with 13 queries