|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Repetitive HTML databy theAcolyte (Pilgrim) |
| on Sep 26, 2003 at 00:38 UTC ( [id://294332]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Not to rain on anyone's parade, but this is something you don't need perl for at all -- not unless you need different data on each line. If your looking to repeat an element over and over and its completely static you have two other good choices:
You can also do it with javascript... but then if the surfer has JS turned off... ouch?? So here's the JS way.
1) Make a .js doc thats all one line like this:
2) in your main HTML doc where you want that file to be included you put the following line: For even MORE fun ... change the SRC to include.pl and write a perl file that dumps out 1 line of javascript which reads: and you have a dynamic include. :-) -Erik
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||