Friday, May 30, 2008

Hello-

I m looking for a Javascript or PHP script that automatically changes an image to a different image at a certain time of the day for a certain number of minutes.

For example- I want to find a script that will display a certain image on the main index of my website from 8 P.M. at night until 6 P.M. in the afternoon. Then between 7:00 P.M. until 7:59 P.M. I want the script to automatically change to the second predefined image for that certain amount of time during the day each day.

10 Pts. Best answer.

Again- Javascript- CSS- or PHP only- please. Those are the only main languages I m familiar with besides HTML. Thanks!

I m still learning- so I compiled a useless code from some of the things I ve learned.

<style type="text/css">
<!--

body {background-color: black}
.font1 {font-family: tahoma; font-weight: bold; font-size: 10px; color: white;}

-->
</style>

<script type="text/javascript">
<!--

var question = "What would you like the title to be?";
function displayquestion(){
document.title = prompt(question);
}

// -->
</script>

<form>
<input type="button" value="Change Title"
onclick="displayquestion()">
</form>

<script type="text/javascript">
<!--

if (displayquestion() == "Random") {
document.write("<font class= font1 >Good choice.</font>");
}else{
document.write("<font class= font1 >Bad choice.</font>");
}

// -->
</script>


There are two problems (neither of which appear in the error console of Firefox). The prompt still appears on the page when you load it- even though it s in a function. Then- the if statement doesn t work right. It writes "Bad Choice" no matter what.

Im having difficulties in playing streamying videos- as well as in youtube.It doesnt play at all.When i use Internet explorer-it says"Hello- you either have JavaScript turned off or an old version of Adobe s Flash Player. Get the latest Flash player. :..Ive already done that-downloaded the latest flash player and even turned on the javascript in IE as well as in firefox.Ive even checked my firewall-deleted cookies-but still it doesnt seem to work? I was able to play it yesterday though.Any ideas?Thx in advance

hey! my group is developing a site for our school. Our template looks in mozilla firefox but in IE6 and 7 looks very frustrating and way way to distortion..*sigh*

we cant really know why this things happened but further more the group wanted to know have an alert message(javascript) that tells "this website is best viewed in mozilla firefox " if the user is using IE or any other web browsers..

the problem is this: how can i detect what web browser is the user using and i want the alert message to appear but when the user is using the mozilla firefox- the alert message would not appear..

How can i do this?? help! our submission of the site is tomorrow..i need answer asap!
hey! thanks for the answers! i really appreciate it! another thing..*sigh* how can i not let the site appear in IE or any other browser since the alert message says that it is best viewed in Mozilla Firefox..pls..help..asap

I have to make a diamond shape out of loops in JavaScript. How would I repeat a written statement a given time and then gradually increase or decrease it. This is my code so far. <table>
<script>
var Pick = prompt("Choose an odd number between 1 and 19.")
for (i = 0; i <= 5; i++)
{
document.write("<tr>X</tr>" i);
}
for (h = 5; h <= 0; h++)

document.write("<tr>X</tr>" * h);
}
</script>
</table>
If you spot anything else wrong or helpful please point it out. Thanks for the much needed help. Oh and it has to give a certain number of dots in the middle of the diamond. I m thinking to use +Pick+ in the loop to do this.
oh its just Pick not +Pick+
Okay what I have to do is make this but in JavaScript:
*
* * *
Sorry Typo

*
* * *
* * * * *
* * *
*
Like this

it says Hello- you either have JavaScript turned off or an old version of Adobe s Flash Player. Get the latest Flash player. and i downloaded the latest version of FP but it still wont work so how do i do the javascript
PL HELP U COMPUTERS GENUISES PLZPLZPLZPLZPLZ!!!!!! thank you

No comments: