Click to See Complete Forum and Search --> : Is an HTML question?


stewart3000
07-27-2009, 04:05 AM
Wanting an audio player to auto play a welcome message when the user first viewed the sites home page then they would have a look around the diffirent pages and return to the home page but I wouldn't want the audio to welcome them every time the home page loads

1DayTutoring
07-27-2009, 03:56 PM
Pure HTML will not allow you to create that function. You certainly need a server side-script (PHP, ASP, JSP,...) to create a cookie that store in the user computer that would help determine whether the home page has already been visited or not. Javascript can also do the job.

stewart3000
07-28-2009, 06:24 AM
I don't know any php of javascript but had the idea of having an audio player auto play on the main home page then when the user clicks to another page then clicks back to what they think is the home page it would really be another page that looks just like it but without the audio player on at all

nickelleon
07-28-2009, 12:47 PM
You could do it that way, stewart3000, have an audio player play on your index.html file, but have your Home links go to main.html. Main.html would be a copy of index.html aside from the auto play on the audio player.

kiwibrit
07-28-2009, 02:41 PM
You could do it that way, stewart3000, have an audio player play on your index.html file, but have your Home links go to main.html. Main.html would be a copy of index.html aside from the auto play on the audio player.

Not sure what the SEO consequences would be, though.

nickelleon
07-30-2009, 03:32 PM
Not sure what the SEO consequences would be, though.

Probably poor, but the level of expertise in regards to the site structure would say that SEO doesnt really matter. The correct way is to use a server-side script, but thats just opening a can of worms for someone thats unfamiliar with them. A green developer requires a green solution. Hehe.

kiwibrit
07-30-2009, 03:52 PM
Fair point.