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
How to add a show/hide button in HTML?
Old 09-17-2007, 10:52 AM How to add a show/hide button in HTML?
Peh
Junior Talker

Posts: 4
Trades: 0
Does anyone know how to add a show/hide button in HTML.

I have a banner near the top of my page and I want it to be possible for people to hide it, and so the computer remembers you have hidden it and not show it again.

If this is possible plz help,
cheers
__________________

Please login or register to view this content. Registration is FREE

Peh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-17-2007, 11:29 AM Re: How to add a show/hide button in HTML?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
It's not possible with pure HTML.

You'll either need Javascript or a server-side programming language to do it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-18-2007, 04:01 PM Re: How to add a show/hide button in HTML?
Skilled Talker

Posts: 59
Name: Dan
Trades: 0
I would use a javascript function to toggle the CSS display property. Something like what is described in this tutorial. http://www.harrymaugans.com/2007/03/...cript-and-css/

You would need to set and read in a cookie to retain preferences between sessions.
Monkey Do is offline
Reply With Quote
View Public Profile
 
Old 09-19-2007, 10:17 AM Re: How to add a show/hide button in HTML?
Novice Talker

Posts: 14
Name: Dmitri
Trades: 0
Use CSS properties: display and hidden, depends on what is the task.
You can achieve it using JavaScript or Server application like PHP.
And read how coockies work it should help 100%.

Good luck
Dknight is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to add a show/hide button in HTML?
 

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