More HTML code help
Thread Starter
PassionFord Post Whore!!
Joined: Apr 2004
Posts: 4,047
Likes: 0
From: Waterlooville....near Portsmouth
I am redesigning our hants forum and have included an image with some info on the header here it is:
<img src="{T_THEME_PATH}/images/welcome.jpg" title="information" />
is there anyway to get this to only display once when you first open the site, so when the page reloads it doesnt come back?
Cheers
John
<img src="{T_THEME_PATH}/images/welcome.jpg" title="information" />
is there anyway to get this to only display once when you first open the site, so when the page reloads it doesnt come back?
Cheers
John
since no-one is helping with a definitive answer I will share my knowledge on how I would go about this. I think you need to use javascript and cookies, basically you would write a cookie to their PC the first time they visit the site and show the image, everytime they load the page it would check if the cookie exists, and if it does would not show the image as you assume they saw it last time when it wrote the cookie.
I did this sorta thing at uni but it was 4 years ago and it would take me sometime to work out again and frankly I can't be bothered but if you read through these tutorials on javascript you might be able to achieve what your try to do.
http://codepunk.hardwar.org.uk/ajs.htm lessons 26 onwards.
Hope this helps a little.
Stuart
I did this sorta thing at uni but it was 4 years ago and it would take me sometime to work out again and frankly I can't be bothered but if you read through these tutorials on javascript you might be able to achieve what your try to do.
http://codepunk.hardwar.org.uk/ajs.htm lessons 26 onwards.
Hope this helps a little.
Stuart
Yeah, just chuck a cookie out when you first execute the page, then dont show the image if it exists.
All sounds terrible from an SEO point of view though TBH, welcome images in general are just a gay idea TBH
All sounds terrible from an SEO point of view though TBH, welcome images in general are just a gay idea TBH
not related to your question, but i have just clicked on the link in your sig to see where the meets are, and the map is dreadful
. can't you put in a link to google maps or something instead? something like this (obviously you'd hide the link in the text)?
http://maps.google.co.uk/maps?f=d&hl...,0.462799&z=11
it brings up the map indicating the pub location, and also sets it as the destination for the route planner, so all visitors have to do is enter their starting address to get directions
http://maps.google.co.uk/maps?f=d&hl...,0.462799&z=11
it brings up the map indicating the pub location, and also sets it as the destination for the route planner, so all visitors have to do is enter their starting address to get directions
Last edited by foreigneRS; Feb 27, 2008 at 05:20 PM.
Thread Starter
PassionFord Post Whore!!
Joined: Apr 2004
Posts: 4,047
Likes: 0
From: Waterlooville....near Portsmouth
Thanks for the replies guys, ive decided the drop the whole welcome image now anyway.
Your right about the map Nick i hated it as soon as i finished it, google link is a great idea
Your right about the map Nick i hated it as soon as i finished it, google link is a great idea
Thread
Thread Starter
Forum
Replies
Last Post
oilman
Trader Parts for Sale.
5
Aug 30, 2015 08:37 AM



