Best way to use CSS in random text
mick white recommended script displaying random text. there way mod it's can show multiple css styles (one style quote , 1 name)? or should way? (i'm not great databases yet.) thanks!
<p> quote of day:<br>
<script>
function randomquote(){
var quotes=["quote1","quote2","quote3"];
return quotes[new date()%quotes.length];
}
document.write(randomquote());
</script>
</p>
<p> quote of day:<br>
<script>
function randomquote(){
var quotes=["quote1","quote2","quote3"];
return quotes[new date()%quotes.length];
}
document.write(randomquote());
</script>
</p>
<p class="yourstyle"> quote of day:<br>
<span class="whatever">
<script>
function randomquote(){
var quotes=["quote1","quote2","quote3"];
return quotes[new date()%quotes.length];
}
document.write(randomquote());
</span>
</script>
mick
nick616 wrote:
> mick white recommended script displaying random text. there way
> mod it's can show multiple css styles (one style quote
> , 1 name)? or should way? (i'm not great
> databases yet.) thanks!
>
>
> <p> quote of day:<br>
> <script>
> function randomquote(){
> var quotes=["quote1","quote2","quote3"];
> return quotes[new date()%quotes.length];
> }
> document.write(randomquote());
> </script>
> </p>
>
>
<span class="whatever">
<script>
function randomquote(){
var quotes=["quote1","quote2","quote3"];
return quotes[new date()%quotes.length];
}
document.write(randomquote());
</span>
</script>
mick
nick616 wrote:
> mick white recommended script displaying random text. there way
> mod it's can show multiple css styles (one style quote
> , 1 name)? or should way? (i'm not great
> databases yet.) thanks!
>
>
> <p> quote of day:<br>
> <script>
> function randomquote(){
> var quotes=["quote1","quote2","quote3"];
> return quotes[new date()%quotes.length];
> }
> document.write(randomquote());
> </script>
> </p>
>
>
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment