Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with a tricky script

Status
Not open for further replies.

caffeinerusher

Programmer
Mar 7, 2001
31
US
I am trying to create a script that will take text confined in a table and will automatically make each line into a DIV. I would like to be able to take the text and manipulate it one line at a time. Any thoughts? I did not know if I could use the delared table widths to tell the script where to write the DIV tags. Please help if you can.
--Caffeinerusher
 
hi caff,
the only way you can do what you want to do is to write out the table in a loop..
every time before you begin to write out the <tr> you would put a <DIV and give it an id of the loop counter
that way if you wanted the 5'th row you would be able to access it by accissing the div with id 5..

but this is a messy way of achieving anything..could you please clue me in on what the functionality really is..
i am sure we can figure out a cleaner and easier way of doing it


 
Hi, thanks for replying. I'm trying to do a little DHTML effect that I could add to a template that already exits. I'm trying to get an animated effect with the lines of text falling into place one at a time. I can do this very easily if it were a graphic. But in order to maintain the template I need all the text to be entered just as it normally is, in one paragraph. Thanks again for the help.

--Caffeinerusher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top