It is currently Fri Mar 29, 2024 5:10 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: Random Affiliates
PostPosted: Sun Apr 16, 2006 3:11 pm 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
Anyone know of a random affiliates script that dosen't use a mySQL database?

I'm using this one at the moment...
http://www.ethicsdesigns.com/random_images.php

But it dosen't seem to be working on my website, no images show up under the Affiliates banner :(

http://lwtzdiftg.freesuperhost.com


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 3:19 pm 
Site Admin
Site Admin

Joined: Fri Feb 11, 2005 7:43 am
Posts: 1818
Location: 100WebSpace's Headquarters
Maybe this: http://forum.100webspace.com/viewtopic.php?t=3992

_________________
Read the F.A.Q. before asking a question!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 3:24 pm 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
You can have a URL with an image so I don't think it would work that well for what I need. Thanks anyway.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 4:18 pm 
Site Admin
Site Admin

Joined: Fri Feb 11, 2005 7:43 am
Posts: 1818
Location: 100WebSpace's Headquarters
Then check this out: http://www.computerhope.com/j18.htm

_________________
Read the F.A.Q. before asking a question!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 4:21 pm 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
Yeah, that seems fine. Would I be able to have the javascript in a file and then just link to it in my actual page?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 4:22 pm 
Site Admin
Site Admin

Joined: Fri Feb 11, 2005 7:43 am
Posts: 1818
Location: 100WebSpace's Headquarters
Well, yes, should not be a problem.

_________________
Read the F.A.Q. before asking a question!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 4:44 pm 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
I forgot the code to include a javascript file into a html page, can anyone post it please?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 4:50 pm 
Moderator
Moderator

Joined: Thu Dec 15, 2005 2:59 pm
Posts: 681
Location: England
Code:
<applet width="128" height="128" code="appletsource" codebase="http://www.appleturl.com">
  Sorry, you need Java to view this!
</applet>

_________________
Mountain biking forum ;)
Ponds and fishkeeping :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 4:59 pm 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
Code:
<applet width="128" height="128" code="appletsource" codebase="http://www.appleturl.com">
  Sorry, you need Java to view this!
</applet>


:?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 5:33 pm 
Moderator
Moderator

Joined: Thu Dec 15, 2005 2:59 pm
Posts: 681
Location: England
Thats the code to insert a java applet into a page, change the "appletsource" and the url to the location of the applet. The "Sorry, you need Java to view this" is the error message they will receive if they dont have Java.

Sorry for not explaining this the first time.

_________________
Mountain biking forum ;)
Ponds and fishkeeping :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 6:15 pm 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
Thanks, still not working though. All there is now is a grey box...

http://lwtzdiftg.freesuperhost.com/13band2.php


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 8:28 pm 
Posts like crazy!
Posts like crazy!

Joined: Mon Sep 26, 2005 5:03 pm
Posts: 204
Location: The Netherlands
Dale.. its JavaScript not Java.. anyway here is the code:

Code:
<script type="text/javascript" src="javascript_file.js"></script>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 9:22 pm 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
Revaroo wrote:
Dale.. its JavaScript not Java.. anyway here is the code:

Code:
<script type="text/javascript" src="javascript_file.js"></script>

http://lwtzdiftg.freesuperhost.com/13band2.php

Still nothing shows up, here is the code from the .js file...

Quote:
<script language="JavaScript"><!--

//Javascript Created by Computerhope http://www.computerhope.com

//store the quotations in arrays

images = new Array(1);

images[0] = "<a href = 'http://www.wednesday13.com'><img src='http://lwtzdiftg.freesuperhost.com/images/affiliates/13.gif' alt='Wednesday 13 Offical Website'></a>";

index = Math.floor(Math.random() * images.length);

document.write(images[index]);

//done

// --></script>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 8:07 am 
Moderator
Moderator

Joined: Thu Dec 15, 2005 2:59 pm
Posts: 681
Location: England
Oh sorry, my mind was on other things.

Code:
<script type="text/javascript" src="http://www.locationtothescript.com/script.js">
</script>


Nothing wrong with the code above.

_________________
Mountain biking forum ;)
Ponds and fishkeeping :D


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 9:18 am 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
Done, but still nothing shows.... :(

Also there is now an error icon at the bottom of the page when there wasn't before.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 10:32 am 
Moderator
Moderator

Joined: Thu Dec 15, 2005 2:59 pm
Posts: 681
Location: England
I cant see anything wrong in the script.. :(

_________________
Mountain biking forum ;)
Ponds and fishkeeping :D


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 10:49 am 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
Yeah, I gonna have to mess around with it and see if I can get it working. This is really annoying =/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 1:22 pm 
Noobie
Noobie

Joined: Sat Sep 17, 2005 7:41 am
Posts: 34
Got the first script working, seems a bit of code that was in there somehow got deleted.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 1:23 pm 
Moderator
Moderator

Joined: Thu Dec 15, 2005 2:59 pm
Posts: 681
Location: England
Glad to hear you fixed it. :)

_________________
Mountain biking forum ;)
Ponds and fishkeeping :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
100WebSpace © 2011