|
Post by Michael on Mar 5, 2005 20:32:10 GMT -5
You know the Random Affiliate thing on the Portal? Well, would I be able to do that on my News/Info Table thing? Or is it something you can onyl do on a sort of webpage?
Michael
|
|
|
Post by matthew on Mar 5, 2005 20:41:33 GMT -5
This is a question for LHW i think.
|
|
|
Post by lhw on Mar 5, 2005 21:08:15 GMT -5
The answer to that would be No. To do that, you'd have to run a JavaScript, and you can't do that in the News Fader. I say this, because I just tested it. I did my test with this simple JS script: <script language="JavaScript">var TEST="1";if(TEST="1"){document.write('<img src="home.comcast.net/~cfot/images/cfot_affiliate_01.jpg" border="0"');}</script>While this script worked when placed in my Main Header, it did NOT work while placed in the News Fader. However, you COULD do an "Affiliate of The Week" and showcase one using the [ img][/img] codes. While not entirely random, doing it weekly will mean less updating on your behalf.
|
|
|
Post by Michael on Mar 5, 2005 22:48:38 GMT -5
I'm talking about that.... sorry about the misunderstanding,.... that's what I call my news box... lol... ;D Like in the space beneath "Harbor Leaders"? Is it possible to have it there?
|
|
|
Post by lhw on Mar 5, 2005 23:08:36 GMT -5
Oh. In that case, if you had the proper script, you'd just add it to that cell. The one used in the Portal, though, isn't public. So you'd either have to write, or find, a JS that randomizes images.
EDIT: If you don't use a marquee, you can use a style/mouseover setting to keep it faded/full opacity.
|
|
|
Post by matthew on Mar 6, 2005 11:42:09 GMT -5
|
|
|
Post by Michael on Mar 6, 2005 15:40:12 GMT -5
<!-- RANDOM PICTURES AND ADDS MADE MY JOSH GOULD AT http://www.geocities.com/joshg678--> <script language="javascript"> <!-- function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish
myimages[1]="http://www.bravenet.com/brpics/affiliate/br11.gif" myimages[2]="http://images.bravenet.com/affiliate/pub/br1.gif" myimages[3]="http://images.bravenet.com/affiliate/pub/br16.gif" myimages[4]="http://images.bravenet.com/affiliate/pub/br13.gif" myimages[5]="http://images.bravenet.com/affiliate/pub/br15.gif"
//specify corresponding alts below var alttext=new Array()
alttext[1]="bravenet" alttext[2]="bravenet" alttext[3]="bravenet" alttext[4]="bravenet" alttext[5]="bravenet"
//specify corresponding alts below var http=new Array()
http[1]="http://www.bravenet.com/?afilid=1216368232" http[2]="http://www.bravenet.com/?afilid=1216368232" http[3]="http://www.bravenet.com/?afilid=1216368232" http[4]="http://www.bravenet.com/?afilid=1216368232" http[5]="http://www.bravenet.com/?afilid=1216368232"
var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<a href="'+http[ry]+'"><img src="'+myimages[ry]+'" border=1 alt="'+alttext[ry]+'"></a>') } random_imglink() //--> </script> <!-- END RANDOM PICTURES AND ADDS MADE MY JOSH GOULD AT http://www.geocities.com/joshg678--> Is that the code I use?
|
|
|
Post by matthew on Mar 6, 2005 15:47:07 GMT -5
if that's the fixed code then yeah. don't you want to use the one i've set up?
|
|
|
Post by Michael on Mar 6, 2005 15:47:44 GMT -5
I think it is.... thanks!
|
|
|
Post by matthew on Mar 6, 2005 16:10:27 GMT -5
in case you missed it in the post i've already put your affiliates in the code.
|
|
|
Post by Michael on Mar 7, 2005 15:36:10 GMT -5
thanks!
|
|
|
Post by lhw on Mar 8, 2005 15:36:37 GMT -5
I just posted what I think is a cleaner version of this, if you're interested. It also adds the mouseover fade in/out effect. It's right here.
|
|
|
Post by Michael on Mar 8, 2005 15:56:31 GMT -5
Thanks! I'll try both of them and see which one I like best out of the two!
|
|