|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
loosing focus on showing/hiding layers
hey all, i wrote my own hide/show function that basically hides or shows any layer id you input into the function. well, the problem im having is that if the page is long enough so that you have to scroll, when you run the function, it makes the browser go to the top of the page. I was thinking I could fix this with .focus() call at the end but it doesnt work.
technical details: when i hide it im using visibility:hidden and position absolute when i show it im using visibility:visible and position relative any ideas on how to get it to stop going to the very top of the page (and thus loosing your spot on the page)? |
|
#2
|
||||
|
||||
|
Very difficult to guess what your problem is without seeing your code.
|
|
#3
|
|||
|
|||
|
http://thespecshop.com/beta/shop.asp
|
|
#4
|
||||
|
||||
|
Change
Code:
href="#" Code:
href="javascript:void(0);" ![]() |
|
#5
|
|||
|
|||
|
bah cant believe i didnt see that ! thanks alot.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > loosing focus on showing/hiding layers |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|