/    Sign up×
Community /Pin to ProfileBookmark

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.

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@xelawhoApr 19.2013 — 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
Copy linkTweet thisAlerts:
@ashish0424authorApr 20.2013 — thanx for reply,


this ads are created by me, i have some banner ads, on each page i want to display 7-10 ads.
Copy linkTweet thisAlerts:
@xelawhoApr 20.2013 — 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.
Copy linkTweet thisAlerts:
@eufrsApr 21.2013 — You can create mysql table for your ads and by select rule you can view what you need to view
Copy linkTweet thisAlerts:
@JMRKERApr 21.2013 — Or you could provide some code or a link to some code so we could make a more informed suggestion.
Copy linkTweet thisAlerts:
@eufrsApr 21.2013 — I offer in this site some useful php code

http://bsw.benhascience.com

all script are free
×

Success!

Help @ashish0424 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...