Upload image and URL

Zip

New Member
Hi does anyone have javascript code to upload an image and url so that it can be displayed as a banner ad on my site?
 

DLPerry

New Member
Speaking just for myself, I don't quite understand what your asking for.

Do you mean you are looking for an ftp program to upload images and files to a webserver?
...or
Are you looking for some sort of rotating ad program to display banner ads on a website/page?
...or
something else entirely?
 

Zip

New Member
Complete newbie! Was hoping someone would be able to upload an image and url on my site and then this would be able to loaded into script of another page. So that when the image is clicked on it would link to another webiste. Am l talking nonsense here? Or do you need some kinda' database system?
 

DLPerry

New Member
I still don't quite get what your wanting to do, I have broken this out roughly by function in an effort to jiggle my brain into some semblance of functionality:


Zip said:
Complete newbie! Was hoping someone would be able to upload an image and url on my site

This part can be done with a form.

and then this would be able to loaded into script of another page.

What kind of script, and what is the function of the script? Is the page still under the same domain?

So that when the image is clicked on it would link to another webiste.

Linking the image to a url is easy enough, but how you do it may depend on what the script you mentioned above requires. It may be simple, standard html, (ex: <a href="http://www.domain.name/file.name"><img src="http://domain.name/image.name"></a> ),.but it could use php, javascript, etc. instead of or in addition to html.
 

RickPlmr

New Member
Let's talk process flow first :)

You'll first need to transfer the image file manually to your web server (or for most of us this means to the web space we've purchased from our Internet Service Provider). This is usually done via FTP, using a program like WS_FTP.

This could also be done using a form as suggested previously, but you'd want to password protect that page so others couldn't replace your image, and it's not usually done this way.

Place the image in a separate "images" folder to keep it separate from your other html files.

Once the image is on your server, then it's just a matter of placing a link on your web page using the html in the previous reply.

Does that help?
 

cardosweb

New Member
Hi there Zip,

So what you are wanting to do is, alow people to upload a banner, and put there web site in a input box..... click submit and it whould add that banner with the link onto your home page, or any other page for that matter. and the banners whould rotate when the page is refreshed? is this correct?
 

Artoonie

New Member
I think he wants something very simple.
After uploading the image via FTP, write this code:
Code:
<a href="URL_OF_DESTINATION_PAGE_WHEN_IMAGE_IS_CLICKED_GOES_HERE"> <img src="URL_OF_IMAGE_HERE"></a>
 
Top