Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Guys quick question please.

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
And forgive me for this but my boss is a complete pain.

On visit to this certain site a javascripted slide pop up window comes out with an award image that the website has won in it (links to nothing, just an image). Now they have won another award. So they wanted the image to rotate each time a user comes to the page. So I wrote a cookie to the users system on the first visit,. When they return the cookie is read and switches the images.

I told them before hand we could have easily just done this with a rotating gif, thet way they see both. But not good enough, know it all boss man, who knows nothing about the internet by the way, feels that a rotating gif is not good enough. I think what happend is because he told the client we would be setting cookies and what not, any other solution is un exceptable. Because then he would look like an ass. Anyway.

So I set the cookie, and it works. Then I told him, well if the user has cookies turned off (did that to intentially show him that he had no idea what he was talking about, and there was no need for cookies), blah blah blah.

So he freaks now because he knows it is not full proof. So now he wants this:

"can we make it where each time the index page is clicked on, no matter what user clicks it, or how many times they've been there it switches?"

Guys is there a way to make this happen? Is there any way to tell the index page "hey each time your hit, switch this pop up?


csatterwhite@orlandomediasolutions.com
 
You could just randomise an array of images. It wont always switch if you only have 2 images but its a start.

~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
 
Yeh I thought of that, but random is also not "random" enough.

Being that it is only two images, one could show up three or four times in a row.


csatterwhite@orlandomediasolutions.com
 
True. a slide show? Just use the gif, tell your boss hes a fool and go free lance. ok no dont do that its foolish.

~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
 
I rarely use absolutes, but I firmly believe there is no foolproof solution. The basis of this is that you need to know what the user saw the previous time so you can show them the opposite image. This means some sort of client tracking.

Cookies: We have already covered cookies and their fallacies.

IP Tracking: This would require something like a database or data file behind the system to keep track of users IP numbers and the last image you showed them. This would require server-side scripting and the problem you will run into here is that when 50 people all hit your website from behind a proxy server or firewall, they will all have the same IP address, so you aren't guaranteed that they will see the second image on their second visit.

Random: As was stated random is not random enough

Cookies and Random: Probably your safest bet. If they don't have a cookie randomly show them one of the two images. At least this way your sort of covering the small amount of people who have cookies turned off...

Sorry I lost my train of thought, my dilbert newletter came in and it took a while to read :p

-tarwn
 
Thanks guys.....

A whole lot to do about nothing, drives me crazy. I mean I don't claim to know everything, visable by me coming here and asking for help.

I can't stand people who know nothing and think they know everything. This guy is a marketing pro who decided to market electronic services, but knows nothing about them and the processes that go into making electronic or internet solutions.

As simple as a animated gif that shows one image every 15 seconds or so would have been suffice.

But because he told the client something not knowing what he was talking about, I have to deal with this. Just so he doesn't have to look like the fool he is.

Sorry, venting.


csatterwhite@orlandomediasolutions.com
 
so tell him you set the cookie and just do it with the gif, if he asks about the cookie tell him that you placed an order with nabisco and they are on the way! If it were me id get pepperidge farm but nabisco makes some fine cookies too. On a more serious note you could also throw in a "dirty" picture in your gif to show for a very brief second between your images and then see if subliminal advertising works. I think tek tips uses this somehow because everytime i visit i get the urge to drink coca-cola and eat at McDonalds.

[Hammer]
Nike Failed Slogans -- "Just Don't Do It!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top