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
Colapse text. A challenge?
Old 12-28-2008, 06:34 PM Colapse text. A challenge?
Average Talker

Posts: 20
Trades: 0
I would like something in HTML that does this function,

http://www.dustindiaz.com/basement/block-toggle.html

Click the 'Switch it now button' to see what i mean.

Basically it Collapses a paragraph but when u click the un-collapse link it comes up again.
Khaoz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-28-2008, 09:18 PM Re: Colapse text. A challenge?
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
No, not a challenge at all. In fact I've used this tutorial before. However, just for a heads-up, this script does use JavaScript. Or is this a different project?

- Steve
stevej is offline
Reply With Quote
View Public Profile
 
Old 12-28-2008, 11:16 PM Re: Colapse text. A challenge?
Registered User

Posts: 78
Name: Joseph
Location: Texas
Trades: 0
I just used this but I was wondering if theres a way to make it so that when the page loads it closed but when you click it, it opens.
josephcohen is offline
Reply With Quote
View Public Profile
 
Old 12-29-2008, 12:45 AM Re: Colapse text. A challenge?
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
You can do that. Just put inside the <div>:

HTML Code:
 style="display: none;"
And that should work.

- Steve
stevej is offline
Reply With Quote
View Public Profile
 
Old 12-29-2008, 06:28 AM Re: Colapse text. A challenge?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by josephcohen View Post
I just used this but I was wondering if theres a way to make it so that when the page loads it closed but when you click it, it opens.
What you should do is close the object on load using script, that way javascript disable UAs will always see the content.

Quote:
I would like something in HTML that does this function,
Not possible in HTML. HTML is NOT a scripting language.
__________________
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 offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-29-2008, 07:06 PM Re: Colapse text. A challenge?
Super Talker

Posts: 143
Trades: 0
Yes, you can't do everything in html, html tags are not good for most any "effects" unless you are talking about color or size. Java and Ajax are the way to go as far as moving objects and shading effects.
__________________

Please login or register to view this content. Registration is FREE
specialk is offline
Reply With Quote
View Public Profile
 
Old 12-29-2008, 07:30 PM Re: Colapse text. A challenge?
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
Quote:
Originally Posted by specialk View Post
Yes, you can't do everything in html, html tags are not good for most any "effects" unless you are talking about color or size. Java and Ajax are the way to go as far as moving objects and shading effects.
Lies
HTML Code:
<p style="color:#000000;font-size:14pt;">Hello World!</p>
HTML tags suck for color and size, thats why they are being replaced with css commands.
__________________

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

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Old 12-29-2008, 08:43 PM Re: Colapse text. A challenge?
nixwebo's Avatar
Average Talker

Latest Blog Post:
Social Marketing Made Easy
Posts: 21
Name: Nick Simpson
Trades: 0
If you want the code to collapse text like seen here 8359.org I can send you the zipped script for it and you can just change what you need on it. Just pm me if you are interested.
__________________

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

Please login or register to view this content. Registration is FREE
I must create a system or be enslaved by another mans; I will not reason and compare: my business is to create. William Blake
nixwebo is offline
Reply With Quote
View Public Profile Visit nixwebo's homepage!
 
Old 12-29-2008, 08:54 PM Re: Colapse text. A challenge?
Novice Talker

Posts: 13
Trades: 0
that was cool! i learned something from here huh.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
informixx is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Colapse text. A challenge?
 

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