Click to See Complete Forum and Search --> : have a question


MelissaE
09-04-2003, 03:07 PM
Hi
I am not sure if I am in the right place or not but I need some help or some sort of direction.

I'm looking for a code that I can put up on my website.
I want to have a information box which I have. ANd In that I want to have daily affirmations in it. Is there a code to have like a weeks worth of affirmations.... have it change to the next days affirmation like every 24 hours? And then like at the beginning of each week I would just go in and add that following weeks or twoo weeks. If possible a months worth.

Sorry if this is confusing I am not good at this html java stuff.

Anyways thanks for your help.
Melissa

zachzach
09-04-2003, 03:57 PM
its javascript
and also use dircriptive headlines/subjects, pll dont know what u want and they wont click-lol

but its ok if ur new, just try not to do it again
and now i'll try not to sound like a moderator-lol

i got a javascript code just for you, it was MADE for you lol
i got this off javascriptsource.com
that site is AMAZING
its a cut&paste, but i use it to learn stuff and i learned it by myself so that proves it as agood site

the base code i minipulated was at:
http://javascript.internet.com/messages/daily-tip.html

so if u need to change it and dont have a clue what im yapping about, cuz i write with lots of weird variables and strings and stuff

well heres the minipulated code:
put this in the head


<SCRIPT LANGUAGE="JavaScript">
<!-- CREDIT to: Original: Mike W. (mikew@dvol.com) -->
<!-- Web Site: http://www.dvol.com/~users/mikew -->
<!-- Minipulated by: Zach -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var msg = new Array();
Stamp = new Date();
today = Stamp.getDate();
msg[1] = "Tip 1";
msg[2] = "Tip 2";
msg[3] = "Tip 3";
msg[4] = "Tip 4";
msg[5] = "Tip 5";
msg[6] = "Tip 6";
msg[7] = "Tip 7";
msg[8] = "Tip 8";
msg[9] = "Tip 9";
msg[10] = "Tip 10";
msg[11] = "Tip 11";
msg[12] = "Tip 12";
msg[13] = "Tip 13";
msg[14] = "Tip 14";
msg[15] = "Tip 15";
msg[16] = "Tip 16";
msg[17] = "Tip 17";
msg[18] = "Tip 18";
msg[19] = "Tip 19";
msg[20] = "Tip 20";
msg[21] = "Tip 21";
msg[22] = "Tip 22";
msg[23] = "Tip 23";
msg[24] = "Tip 24";
msg[25] = "Tip 25";
msg[26] = "Tip 26";
msg[27] = "Tip 27";
msg[28] = "Tip 28";
msg[29] = "Tip 29";
msg[30] = "Tip 30";
msg[31] = "Tip 31";

function writething() {
document.write(msg[today]);
}
// End -->
</script>



and this in your body:

<b>Daily Thingermajigger:</b>

<script>
writething();
</script>

MelissaE
09-04-2003, 04:06 PM
OThank you and sorry for posting inthe wrong section I wasn't sure which of the two I should of gone to. As I haven't a clue about scripts adn all thanks.:)

zachzach
09-10-2003, 04:25 PM
its ok
welcom