d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Iso Your Opinion For This Problem At Work > Javascript Question
Add Reply New Topic New Poll
Member
Posts: 29,344
Joined: Mar 27 2008
Gold: 504.69
May 20 2016 03:40pm
I am currently working as an IT intern at some company.
They have a website and they sell some ad space on it.

The current way updating the ad images is they find a company interested in placing on an ad on the website,
they talk to a media designer that creates an ad for the company,
the media designer e-mails them an image,
they forward that image to some service they pay for.

This service basically takes the image and loads it into a database on their end with the hyperlink.

Inside the companies website is a javascript that basically calls the database and randomly places an image on the website.

For whatever the reason is (I am actually not sure) this company they pay for this service from ran into ethical problems and is being shut down.
After the current amount of time these companies have paid for ad's on the website, they are no longer are going to have ad's.

So, in short, they are looking for a temporary solution until then.
My boss ask's me if I am familiar enough with javascript to write something that just randomly places a local image and it changes after 30 seconds.
I am.

I spoke with the person today responsible for updating the website and they have zero knowledge of html or javascript.
...................Yeah.

What would be the best way to implement a solution that his person, with zero knowledge, can update the javascript for when the ad's change.
I was thinking of creating a supplement website that will create the script for them, and all they have to do is fill in a form or something.
Thoughts appreciated.
Member
Posts: 3,451
Joined: Feb 26 2010
Gold: 0.20
May 20 2016 05:14pm
Easiest way would be to create a tool where you input some image/URL and it spits out the js. Not sure why it would need to be a website, like a locally build tool would be fine.

Or you can architect/document the js such that even someone with no experience would be able to go in and update it.
Member
Posts: 29,344
Joined: Mar 27 2008
Gold: 504.69
May 21 2016 05:32am
Quote (silvermace @ May 20 2016 07:14pm)
Easiest way would be to create a tool where you input some image/URL and it spits out the js. Not sure why it would need to be a website, like a locally build tool would be fine.

Or you can architect/document the js such that even someone with no experience would be able to go in and update it.


Thanks for your input.

It doesn't need to be a website, was just thinking out loudi guess. I should be able to do something like that on Java pretty easily.
Member
Posts: 8,112
Joined: Sep 23 2006
Gold: 3,558.23
May 21 2016 07:11am
There are existing examples on the web already, no need to reinvent the wheel. Google for JavaScript image rotator.
Member
Posts: 29,344
Joined: Mar 27 2008
Gold: 504.69
May 21 2016 04:12pm
Quote (Qord @ May 21 2016 09:11am)
There are existing examples on the web already, no need to reinvent the wheel. Google for JavaScript image rotator.


I'm not really. The script that will rotate the images is about as easy as it gets. The problem isn't the script, is the fact that the script will need to be changed by someone with no knowledge.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 21 2016 05:55pm
Quote (ROM @ May 21 2016 06:12pm)
I'm not really. The script that will rotate the images is about as easy as it gets. The problem isn't the script, is the fact that the script will need to be changed by someone with no knowledge.


what do you mean by changed? you mean the links have to be updated? create some csv file that he can edit in excel.
Member
Posts: 29,344
Joined: Mar 27 2008
Gold: 504.69
May 21 2016 06:22pm
Quote (carteblanche @ May 21 2016 07:55pm)
what do you mean by changed? you mean the links have to be updated? create some csv file that he can edit in excel.


Yes and removed, edited, added, etc. This is a very smart idea. Thanks for the tip.

This post was edited by ROM on May 21 2016 06:22pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll