...

View Full Version : Using Arrays with either CSS or HTML Mark-up?



Amon
12-09-2009, 03:55 AM
Is it possible to use either CSS or basic HTML mark-up in an array?
All I need is to bold some text, and use the <br/> tag.

Thanks in advance for any replies.

Dan

abduraooft
12-09-2009, 08:47 AM
Is it possible to use either CSS or basic HTML mark-up in an array?
There's no array concept in HTML or CSS, since they are not programming languages.

All I need is to bold some text, and use the <br/> tag. Please explain more.

_Aerospace_Eng_
12-09-2009, 08:53 AM
I think they mean something like this.

var arr = new Array();
arr[0] = '<p style="color:#F00">some text</p>';
arr[1] = '<p style="color:#00F">some more text</p>';

That above is a javascript array. Please explain yourself better if this isn't what you need.

Amon
12-09-2009, 02:11 PM
The set-up is a captioning page, where people e-mail in comments based on a currently available picture. Here's the link: (http://www.captiongallery.com/wcff/wcff.htm).
What I'm looking for is the ability to have multiple slideshows on a single page, and accompanying text. I have that part figured out.
The reason I need the bold and the <br/> tags is for ease of reading.
Without the abilty to at least use the <br/> tag (or equivalent), I will end up with something like this (goes with Will Cap For Food #119, if curious):

Daleman: W: Taking your brain out and putting
it in a jar! Whats the matter with you? M: Yes
dear. W: And look at the blood everywhere. I
supposed I'm supposed to clean up the mess?
M: Yes dear. W: Blood on your clothes. Guess
who has to scrub that mess out? M: Yes dear.
W: Really, I don't know why I bother with you.
M: Yes dear. W: When I think back and could
have married Roger Green. He owns his own
construction company now. M: Yes dear. W:
Big house, new cars, and he helps around the
house. Now *that's* a real man. M: Yes dear.

What I'm looking to accomplish is to get the text to display like below, as the above is almost impossible to make any sense out of:

Daleman:
W: Taking your brain out and putting it in a jar! Whats the matter with you?
M: Yes dear.
W: And look at the blood everywhere. I supposed I'm supposed to clean up the mess?
M: Yes dear.
W: Blood on your clothes. Guess who has to scrub that mess out?
M: Yes dear.
W: Really, I don't know why I bother with you.
M: Yes dear.
W: When I think back and could have married Roger Green. He owns his own construction company now.
M: Yes dear.
W: Big house, new cars, and he helps around the house. Now *that's* a real man.
M: Yes dear.

There may be 30 or more captions per picture, and a slideshow format would make for a lot of space saving. Right now I have 121 different pages for older captions, where with this format I could cut it down to twelve or less.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum