Hi every one i m new at this forum and this one is my first post, i hope i will get my answer
My question is that, i want to change the advertisement on my webpage on the basis of value in the list box, my list box contains names of city i want to display the advertisements of particular city on that page,please help me thanx in advance.
04-19-2013, 10:36 AM
nowhere near enough information.
how are the ads rendered? by you or an external source? is there a finite amount? do you have access to their file paths?
maybe a link to your page would be best
04-20-2013, 12:54 AM
thanx for reply,
this ads are created by me, i have some banner ads, on each page i want to display 7-10 ads.
04-20-2013, 10:49 AM
you can make an object with the keys corresponding to the options in the select and the values being arrays holding the pathnames to your ads. Then all you need is a function that tells the code which displays your ads which array to use.
04-21-2013, 02:51 AM
You can create mysql table for your ads and by select rule you can view what you need to view
04-21-2013, 09:18 AM
Or you could provide some code or a link to some code so we could make a more informed suggestion.