I would test it on the live site.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
Thomas,
I took your advice and tried to create a cookie as per
http://en.wikipedia.org/wiki/HTTP_cookie
I used this code:
<script type="text/javascript">
if (document.cookie)
{ document.cookie = "play=yes; expires=; path=/";
alert('cookie=' + document.cookie) }
else alert("cookie can't be set")
</script>
What returned was the alert
cookie can't be set
Why?
I am testing on my local disk. Should I test on the web?
I tried to set my website (tandcl.homemail.com.au) as an "Always
Allow" in IE Tools | Internet options | Privacy | Sites , but it
didn't come up in the list of sites. Again, I can't figure out why!
I am fairly sure I also allow cookies from primary sites, although
where I set this, I can't remember.
Any further help appreciated
--
Cheers,
Trevor L., WIP (Web Interested Person)
Website:
http://tandcl.homemail.com.au
Thomas A. Rowe wrote:
This would be best done with a cookie that expires, in say 24
hours.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
Thomas,
I think the poster wants to have the music play only when anyone
first visits the home page in a session, and when coming back to
the home page from another page in the site, in that session, to
have it *not* play. If the person visits a second time - not from
within the site - then the music should still play. Do I
understand this
correctly? If so, does this necessarily need a cookie - wouldn't
this prevent
the music from playing on the second and subsequent time of
entering the home page ? My thoughts are that when returning to
the home
page from another page, the location is coded as
index.html?revisit=yes and index.html then extracts the parameter
revisit and when yes, does not play the
music. As I have a similar situation, I will try this out. If I
succeed, I will post a response with the details.
--
Cheers,
Trevor L., WIP (Web Interested Person)
Website:
http://tandcl.homemail.com.au
Thomas A. Rowe wrote:
You would need to look into writing a cookie.
http://en.wikipedia.org/wiki/HTTP_cookie
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
I have added a background sound to my homepage only. So this
plays whenever the homepage is opened. Is it possible to
configure this so it only plays when the homepage is opened by
a visitor for the first time & not everytime you return to the
homepage from other pages on the website ?