Jump to content


Photo

A stylesheet question for you guys


  • Please log in to reply
2 replies to this topic

#1 lead2gold

lead2gold
  • Members
  • PipPipPip
  • Advanced Member
  • 164 posts
  • LocationOttawa, On

Posted 14 June 2006 - 06:48 PM

Ok, here is my problem/scenario:
I have a ton of static information... (about 30 pages worth) on a webpage
[code=auto:0]<p>bla bla bha</p>
<p>blah blah blah</p>
...
...
<p>blah blah page 15</p>
...
<p>blah blah blah page 30</p>[code=auto:0]

What i want to do is tag only a selected few paragraghs etc..

[code=auto:0]
<div class="abrv">
<p> blah blah blah page 15</p>
</div>
[code=auto:0]

Then i want to allow the ability to hide all the content except what was tagged.
Basically i want to have 1 document, but have the ability to show an abreviated version of it at the push of a button and then also be able to flip back to the full "un"abreviated version.

The current system is working with 2 seperate files... but i'm sure with the power of styles, this could be simplified into 1 document.

Am i even on the right track? Could someone give me a hand or an example of how i'd do this?

Chris


#2 dbrimlow

dbrimlow
  • Members
  • PipPipPip
  • Advanced Member
  • 712 posts

Posted 15 June 2006 - 06:53 PM

[!--quoteo(post=383944:date=Jun 14 2006, 02:48 PM:name=lead2gold)--][div class=\'quotetop\']QUOTE(lead2gold @ Jun 14 2006, 02:48 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Ok, here is my problem/scenario:
I have a ton of static information... (about 30 pages worth) on a webpage
[code=auto:0]<p>bla bla bha</p>
<p>blah blah blah</p>
...
...
<p>blah blah page 15</p>
...
<p>blah blah blah page 30</p>[code=auto:0]

What i want to do is tag only a selected few paragraghs etc..

[code=auto:0]
<div class="abrv">
<p> blah blah blah page 15</p>
</div>
[code=auto:0]

Then i want to allow the ability to hide all the content except what was tagged.
Basically i want to have 1 document, but have the ability to show an abreviated version of it at the push of a button and then also be able to flip back to the full "un"abreviated version.

The current system is working with 2 seperate files... but i'm sure with the power of styles, this could be simplified into 1 document.

Am i even on the right track? Could someone give me a hand or an example of how i'd do this?

Chris
[/quote]

try styleswitcher 1 - [a href=\"http://www.contrastsweb.com/switcher/\" target=\"_blank\"]http://www.contrastsweb.com/switcher/[/a] or styleswitcher2 [a href=\"http://www.contrastsweb.com/switcher/v2/\" target=\"_blank\"]http://www.contrastsweb.com/switcher/v2/[/a]

For your purpose v2 might be better.

Here is a sample of v1 on a site I am working on - [a href=\"http://www.manhattanapts.com/indexblank.htm\" target=\"_blank\"]http://www.manhattanapts.com/indexblank.htm[/a], the sheet switch links are on top.
Dave

I am always amazed by no matter how much I know, I know I don't know as much as I thought I knew.  - D. Brimlow.

#3 lead2gold

lead2gold
  • Members
  • PipPipPip
  • Advanced Member
  • 164 posts
  • LocationOttawa, On

Posted 15 June 2006 - 07:17 PM

[!--quoteo(post=384322:date=Jun 15 2006, 02:53 PM:name=dbrimlow)--][div class=\'quotetop\']QUOTE(dbrimlow @ Jun 15 2006, 02:53 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Here is a sample of v1 on a site I am working on - [a href=\"http://www.manhattanapts.com/indexblank.htm\" target=\"_blank\"]http://www.manhattanapts.com/indexblank.htm[/a], the sheet switch links are on top.
[/quote]

Wow, thats neat what you've done!
I like that idea!

I got one working to my standards but it isn't on the fly like you have.

I reload the page with a different style setting when the proper parameter has been set.
(http://hitech.lead2gold.org/view_lrules.php and [a href=\"http://hitech.lead2gold.org/view_lrules.php?action=abbrv)\" target=\"_blank\"]http://hitech.lead2gold.org/view_lrules.php?action=abbrv)[/a] where you can view the full rules or abbreviated.

My problem is i can call the css style display: none; no prob
but there is no command to undo that... or is there?
In ancase, i reload the page without that line set depending on the paramter...

I intend to bookmark your site though, thats still a very neat idea!

Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users