12-14-2005, 04:57 PM | #1 (permalink) |
Falling Angel
Location: L.A. L.A. land
|
HTML Commenting out
Hey all!
I am fairly innocent of HTML knowledge (knowledge of good and evil!), but I was hoping someone could tell me how to comment out lines of text in HTML. I maintain my own website, and I have recurring but not regular performances in different places. I'd like to be able to comment out outdated announcements, so when I get hired again for a place I can just remove the comment code and update the announcement, not have to recreate it every time. Mucho Grande Gracias!
__________________
"Love is a snowmobile racing across the tundra and then suddenly it flips over, pinning you underneath. At night, the ice weasels come." - Matt Groening My goal? To fulfill my potential. |
12-14-2005, 05:11 PM | #2 (permalink) |
seeker
Location: home
|
you could make the area with the dates and times a table
I see that the whole area is a single table Break it up into cells for each show. save each show data in notepad then you will just edit the time and date paste the whole thing into the cell comments from example, the line <!-- This is commented out --> is a valid comment line, but the line < !-- This is commented out --> is not, since there is a space between the left angle bracket and the exclamation mark Be careful if you use comments to "comment out" HTML that would otherwise be shown to the user, since some older browsers will still pay attention to angle brackets inside the comment and close the comment prematurely -- so that some of the text that was supposed to be inside the comment mistakenly appears as part of the document
__________________
All ideas in this communication are sole property of the voices in my head. (C) 2005, 2006, 2007, 2008, 2009 "The Voices" (TM). All rights reserved.
Last edited by alpha phi; 12-14-2005 at 05:25 PM.. |
12-18-2005, 12:25 PM | #3 (permalink) | |
Upright
Location: under your bed...
|
Quote:
__________________
Damnant Quod Non Intelligunt - translates into "They condemn what they do not understand." "The numbers on the headstone are not important, it is the hyphen that lies between." |
|
12-26-2005, 08:11 PM | #4 (permalink) |
Crazy
|
Also remember that commented html code is still sent to the client. So don't put any sensitive information in your commented html code.
__________________
Even if you stop the clock, it gives the right time twice a day. Once we get out of the eighties, the nineties are going to make the sixties look like the fifties. |
01-05-2006, 11:02 AM | #5 (permalink) |
aka: freakylongname
Location: South of the Great While North
|
You could always use Javascript to turn the text on / off... Here is an example with three lines that show up only if the variable is set to true. If the variable is false it does not display.
The text can be any valid HTML. Just watch out for " in you HTML.
__________________
"Reality is just a crutch for people who can't cope with drugs." Robin Williams. |
Tags |
commenting, html |
|
|