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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Re: collapsible tables ??
Old 10-20-2009, 07:34 AM Re: collapsible tables ??
Junior Talker

Posts: 2
Name: Heidi
Trades: 0
please please please if someone can help ...

this might be a dumb question, but is there a way to make it so when you click to toggle link, the page doesn't jump? as is now (as any destination anchor) when you click it, the "toggled" material jumps to the top of the screen and the page scrolls down some to do this. is there any way to make it not do this? so you can open and close the toggle all you want and the rest of the page stays put?

please help !!!!!!!!!!!!!!!!!!!!!!


(btw this is a great code! thanks!!!!!)
happinessx03 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-21-2009, 01:33 AM Re: collapsible tables ??
Extreme Talker

Posts: 201
Name: Brian
Trades: 0
You're in luck


Head tags:
Code:
<script language="javascript">
function toggle() {
var ele = document.getElementById("toggleText");
var text = document.getElementById("displayText");
if(ele.style.display == "block") {
ele.style.display = "none";
text.innerHTML = "See More";
}
else {
ele.style.display = "block";
text.innerHTML = "Hide";
}
}
</script>
Body:
Code:
<div id="toggleText" style="display: none;">(put your text)</div>
<a href="javascript:toggle();" id="displayText">See More</a>
If any problems let me know. It shouldn't refresh. Atleast it doesn't on my page. you can see it live here. www.exclusivetent.info/technical.htm
bdg1115 is offline
Reply With Quote
View Public Profile
 
Old 10-27-2009, 06:22 PM Re: collapsible tables ??
Junior Talker

Posts: 4
Name: frank
Trades: 0
Yup, this is definitely possible as long as you use JavaScript. Try the script above, it looks like it should work fine.
__________________

Please login or register to view this content. Registration is FREE
speak66 is offline
Reply With Quote
View Public Profile
 
Old 10-27-2009, 06:34 PM Re: collapsible tables ??
Banned

Posts: 315
Name: Doug
Trades: 1
You can use "tabbed" content also. Click on the tab and the page expands.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Re: collapsible tables ??
 

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