PDA

View Full Version : question about script on FS


Magix
2006-08-19, 05:19 PM
So i was playing with dreamweaver and found this function to change pics on mouse roll over ( ok i know i'm newbie |waves| )
the site looks much better with this function. but it inserts scipt on FS.
So i did removed it when i was submiting this FS to link lists.

My question is: can i use this function on FS or not, and how many Link lists would decline me?
Is it ok to use this kind of script on FS?

http://www.pornomagix.com/freesites/36/pleasebangphyllisha/index.html

Scipt:

<<<<<<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>>>>|confused|

P.S. mouse roll over is on enter link :)

Useless
2006-08-19, 05:30 PM
Which part of "no Java" do you not understand? Is it the "no" or the "Java" that is causing the confusion?

Add all of the gimmicky shit to your hubs and leave your free sites alone.

BTW, search Google for "java rollover" and you'll find much lighter scripts that will do the same thing. Just don't put it on your free sites.

Magix
2006-08-19, 06:31 PM
oki doky :) thanks :)

Jeka
2006-08-19, 10:55 PM
In my opinion link lists should at least allow java code from counters like Google analytics, there's no risk.
Or allow java for trusted submitters.

virgohippy
2006-08-19, 11:05 PM
Some places allow java for certain things, like honest onmousovers, but image rollovers are generally a no no.

Personally, in no way do I consider using scripts called from a third party a no risk. It's a calculated risk at best. |sad|

Jeka
2006-08-20, 01:39 AM
Yeah sure but the risk of getting your server hijacked is higher than Google fucking up.

Maj. Stress
2006-08-20, 03:15 AM
You can do rollovers with css ;)

virgohippy
2006-08-20, 05:20 AM
Yeah sure but the risk of getting your server hijacked is higher than Google fucking up.

Think so? |huh

And anyway, I can only imagine the arguments that would follow being lax on that issue. Making it explicitly clear that only one company's java tracking system, and no other is allowed seems like a perfect way to add many hours of time to any reviewer's schedule. |thumb

What would you use a third party counter system do for you anyway, but serve as a traffic leak? A check of simple server stats every so often gives me all the info I need. |loony|

kitty_kate
2006-08-20, 05:45 AM
Just for the record guys, it's JavaScript you are talking here. It executes on the client computer (Java is a server scripting language and executes on the server).

BishopWeber
2006-08-20, 12:51 PM
Hi, I'v allready asked in other tread but have no response:
What about some home made php counter into a image like this <"img src=some_img.php>"?, can it pass the no scripts or counters rule?
It has no client execution and can give very acurate and custom stats.

Useless
2006-08-20, 01:10 PM
Just for the record guys, it's JavaScript you are talking here. It executes on the client computer (Java is a server scripting language and executes on the server).Shut up.

Useless
2006-08-20, 01:13 PM
Hi, I'v allready asked in other tread but have no response:
What about some home made php counter into a image like this <"img src=some_img.php>"?, can it pass the no scripts or counters rule?
It has no client execution and can give very acurate and custom stats.That would be fine. As long as it isn't placing script on the free site page, you're fine.

QuickDraw
2006-08-20, 06:07 PM
Just for the record guys, it's JavaScript you are talking here. It executes on the client computer (Java is a server scripting language and executes on the server).

Actually... Java isnt executed server side unless youre talking about Java Servelets ( which still might actually be run locally..? not real familiar w/ JSP ), and it's not a scripting language either. It's compiled and then run locally by JVM. :)

And Bishop, I think as long as you keep it really lightweight, and don't allow your functions to echo back errors ( @function() ) you should be ok.

kitty_kate
2006-08-20, 08:05 PM
QuickDraw, thanks for correcting my post! Yes I was reffering to JSP (or Java Server Pages there).

About the JavaScript in the free sites, I don't see its use. If you want to make rollovers, CSS can be used as Maj. Stress said before.

@BishopWeber : I was thinking to make some kind of counter like that, too. That was happening when I used sponsor hosting and didn't had any stats from the web server. But I have paid hosting now with all the stats I want, and there is no need for "tricks" |thumb