Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 02-09-2009, 02:23 AM anchor using script
Skilled Talker

Posts: 97
Trades: 0
i am making a javascipt function to make show and hide, but i have a problem that i cant use this function by anchors.
<div id="show2" class="show_span" style="cursorointer; display:inline;" onclick="showhidefn('doc2','show2');location.href='#1' " >

i need to make it using anchors. but the anchor is not working well wiz me using js.
can anyone help me to make the anchor using js?
john_zakaria is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-09-2009, 03:15 AM Re: anchor using script
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
location.hash="name"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-09-2009, 03:34 AM Re: anchor using script
Skilled Talker

Posts: 97
Trades: 0
i did not get any error message but the anchor is not working, i did not go to thedestination point of anchor needed..
i am making a fuction for show and hide... the anchor is not working well in showing data. but in hiding it it works. i need to make it works in either showing or hiding data.

do u need the function used to make it??
i tried to make

location.hash="name"

window.location='#name'
john_zakaria is offline
Reply With Quote
View Public Profile
 
Old 02-11-2009, 01:37 AM Re: anchor using script
Skilled Talker

Posts: 97
Trades: 0
thnx alot for your reply
look,
i knew why i have this problem but till now u can not solve it
i am using a function for show/hide.. the data is hidden when page is loaded so there is a small data shown on the page (only titles) so when i press on any title to go to this anchor it did not work well bcoz of the existance of small data..
but when i made the hidden data block i found that the anchor is working well..
i need the data to be hidden and also i need to use the anchor.. how i can solve it????

thnx alot
john_zakaria is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to anchor using script
 

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.36211 seconds with 12 queries