Jump to content

Recommended Posts

I'm wanting to create a little JS image what will:

  • Link to a site when clicked on
  • Collect data from the site it is displayed on (hits, unique hits etc)
  • Report the collected stats to a main site which will add them to a DB

 

Any suggestions or tutorials?

 

Wes

hmmm then you still dont use javascript.

A trick I usually see here is a 1px image thats not even a pixel but a call to an external script for example

<img  src="getinfo.php?data=info" style="width:1px;height:1px" />

You could just make php write and image and save data to a database.

To make it link simply put it in anchor tags

<a href="somelink.html"><img  src="getinfo.php?data=info"  /></a>

 

you still dont need javascript here

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.