On some websites there is a picture on the homepage, or wherever, that changes each time you visit the site or refresh it on your browser. Could somebody please tell me how to do that or where I can go to learn. Thanks for reading this one and thanks in advance to anybody nice enough to answer.
That's going to be either JavaScript or some type of server-side language. Try hotscripts for a ready-made script. If that doesn't get you what you need, I'd post this message in one of the other forums. Maybe somebody there would be willing to put something together for you.
I just want to generate a random image each time someone visits the site. For example, have a bunch of images stored and each time you hit refresh it randomly selects one.
Originally posted by madalo I just want to generate a random image each time someone visits the site. For example, have a bunch of images stored and each time you hit refresh it randomly selects one.
I have a great asp.net ad rotator script that uses some xml to control the impressions. Let me test it and see if it works the way it is supposed to. If it works Ill show you the code. But until then do some reaserch on java script. You will probably be going for something like a random quote script but you can dynamically genorate the html. Do a forum search for rnd or random or something. Ill post back in this soon.
http://knights.europe.webmatrixhosti...adrotator.aspx
Does this float your boat? You can modify how many times each image displayed relative to the total number of images displayed. Pretty much its an average. Its pretty neat I think. You can run something like this off of brinkster or something. Brinkster is a free host so its no biggie there. This is better then using java script because it gives you more control and it will work for all users, it wont leave 13% out like java script would. You can configre this application by modifying this file http://knights.europe.webmatrixhosti.../bannerads.xml
its pretty stright forward what you change
Thank you so much, PeOfEo. That looks like something that might work. I'll give it a shot tomorrow and try to configure it to the site I maintain. I really appreciate yours and everybody else's reply!
well you will need the source codes. I showed you the file... but the code is executed server side so I will need to give it to you. So let me upload these things. This is asp.net so you will need to be on a server that supports it so I suggest making an account at http://europe.webmatrixhosting.net or http://www.brinkster.com to host all of the ad rotator stuff and any other asp.net stuff. There is not much to modify, just the xml really and maybe some of the other stuff that displays with the ad is pretty straight forward too but I can help you modify that if you like. When you display this on your site I suggest you use an iframe.
Bookmarks