Computers, Consoles and I.T. Post all computer related chat in here for our I.T techies to help with. Please be aware that any discussions related to piracy will be removed and render the member liable to a possible ban. Piracy renders PassionFord Admin liable for prosecution, as well as its members.

More HTML code help

Old Feb 24, 2008 | 10:57 PM
  #1  
lamb chops's Avatar
lamb chops
Thread Starter
PassionFord Post Whore!!
 
Joined: Apr 2004
Posts: 4,047
Likes: 0
From: Waterlooville....near Portsmouth
Default More HTML code help

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
Reply
Old Feb 26, 2008 | 09:33 AM
  #2  
lamb chops's Avatar
lamb chops
Thread Starter
PassionFord Post Whore!!
 
Joined: Apr 2004
Posts: 4,047
Likes: 0
From: Waterlooville....near Portsmouth
Default

anyone??
Reply
Old Feb 26, 2008 | 03:25 PM
  #3  
stuey650's Avatar
stuey650
Wahay!! I've lost my Virginity!!
 
Joined: Jul 2007
Posts: 61
Likes: 0
Default

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
Reply
Old Feb 26, 2008 | 03:29 PM
  #4  
Chip's Avatar
Chip
*** Sierra RS Custard ***
iTrader: (3)
 
Joined: Dec 2006
Posts: 47,250
Likes: 22
Default

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
Reply
Old Feb 27, 2008 | 05:19 PM
  #5  
foreigneRS's Avatar
foreigneRS
Testing the future
 
Joined: Jul 2003
Posts: 17,597
Likes: 24
From: W. Sussex
Default

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

Last edited by foreigneRS; Feb 27, 2008 at 05:20 PM.
Reply
Old Feb 27, 2008 | 05:44 PM
  #6  
lamb chops's Avatar
lamb chops
Thread Starter
PassionFord Post Whore!!
 
Joined: Apr 2004
Posts: 4,047
Likes: 0
From: Waterlooville....near Portsmouth
Default

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
Reply
Old Feb 28, 2008 | 07:21 AM
  #7  
foreigneRS's Avatar
foreigneRS
Testing the future
 
Joined: Jul 2003
Posts: 17,597
Likes: 24
From: W. Sussex
Default

Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
oilman
Trader Parts for Sale.
5
Aug 30, 2015 08:37 AM
Timmy74
Ford Mondeo Including ST
2
Aug 28, 2015 01:21 PM


Thread Tools
Search this Thread

All times are GMT. The time now is 05:24 AM.