Flauw gratis script -.-

Status
Niet open voor verdere reacties.

Stinuz

Terugkerende gebruiker
Lid geworden
14 jun 2003
Berichten
1.245
Hey hey, ik heb zojuist een javascript gedownload en toegepast op mijn site en nu kom ik er achter dat zodra je de pagina refreshed, je een pop-up krijgt van het script dat zegt dat het alleen gratis is voor personelijk gebruik, en als je het voor andere doeleinden wilt gebruiken moet je eerst naar hun site.

Hier heb ik dus écht geen behoefte aan, niet erg gebruiksvriendelijk :/

Ik heb het probleempunt denk ik gevonden:

Code:
dw_Rotator.restartDelay = 500; // delay onmouseout before call to rotate
dw_Rotator.col=[];function dw_Rotator(name,speed,path,tgt){this.name=name;this.speed=speed||4500;this.path=path||"";this.tgt=tgt;this.ctr=0;this.timer=0;this.imgs=[];this.actions=[];this.index=dw_Rotator.col.length;dw_Rotator.col[this.index]=this;this.animString="dw_Rotator.col["+this.index+"]";};dw_Rotator.prototype.addImages=function(){var img;for(var i=0;arguments[i];i++){img=new Image();img.src=this.path+arguments[i];this.imgs[this.imgs.length]=img;}};dw_Rotator.prototype.addActions=function(){var len=arguments.length;for(var i=0;i<len;i++)this.actions[this.actions.length]=arguments[i];};dw_Rotator.prototype.rotate=function(){clearTimeout(this.timer);this.timer=null;if(this.ctr<this.imgs.length-1)this.ctr++;else this.ctr=0;var imgObj=document.images[this.name];if(imgObj&&dw_Rotator.ready){imgObj.src=this.imgs[this.ctr].src;this.timer=setTimeout(this.animString+".rotate()",this.speed);}};dw_Rotator.start=function(){var len=dw_Rotator.col.length,obj;for(var i=0;i<len;i++){obj=dw_Rotator.col[i];if(obj&&obj.name)obj.timer=setTimeout(obj.animString+".rotate()",obj.speed);}};dw_Rotator.doClick=function(n){var obj=dw_Rotator.col[n];if(!document.images||!obj)return true;if(obj.actions&&obj.actions[obj.ctr]){if(typeof obj.actions[obj.ctr]=="string")

{if(obj.tgt){var win=window.open(obj.actions[obj.ctr],obj.tgt);if(win&&!win.closed)win.focus();}else{window.location=obj.actions[obj.ctr];}}else{obj.actions[obj.ctr]();}}return false;};dw_Rotator.pause=function(n)

{dw_Rotator.clearTimers(n);};dw_Rotator.clearTimers=function(n){var obj=dw_Rotator.col[n];if(obj){clearTimeout(obj.timer);obj.timer=null;}};dw_Rotator.resume=function(n){dw_Rotator.clearTimers(n);var obj=dw_Rotator.col[n];if(obj){obj.timer=setTimeout(obj.animString+".rotate()",dw_Rotator.restartDelay);}};var dw_Inf={};dw_Inf.fn=function(v){return eval(v)};dw_Inf.gw=dw_Inf.fn("\x77\x69\x6e\x64\x6f\x77\x2e\x6c\x6f\x63\x61\x74\x69\x6f\x6e");dw_Inf.ar=[65,32,108,105,99,101,110,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,102,111,114,32,97,108,108,32,98,117,116,32,112,101,114,115,111,110,97,108,32,117,115,101,32,111,102,32,116,104,105,115,32,99,111,100,101,46,32,83,101,101,32,84,101,114,109,115,32,111,102,32,85,115,101,32,97,116,32,100,121,110,45,119,101,98,46,99,111,109];dw_Inf.get=function(ar){var s="";var ln=ar.length;for(var i=0;i<ln;i++){s+=String.fromCharCode(ar[i]);}return s;};dw_Inf.mg=dw_Inf.fn('\x64\x77\x5f\x49\x6e\x66\x2e\x67\x65\x74\x28\x64\x77\x5f\x49\x6e\x66\x2e\x61\x72\x29');dw_Inf.fn('\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x31\x3d\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x2e\x68\x6f\x73\x74\x6e\x61\x6d\x65\x2e\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73\x65\x28\x29\x3b');dw_Inf.fn('\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x32\x3d\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x2e\x68\x72\x65\x66\x2e\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73\x65\x28\x29\x3b');dw_Inf.x0=function(){dw_Inf.fn('\x69\x66\x28\x21\x28\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x31\x3d\x3d\x22\x22\x7c\x7c\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x31\x3d\x3d\x22\x31\x32\x37\x2e\x30\x2e\x30\x2e\x31\x22\x7c\x7c\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x31\x2e\x69\x6e\x64\x65\x78\x4f\x66\x28\x22\x6c\x6f\x63\x61\x6c\x68\x6f\x73\x74\x22\x29\x21\x3d\x2d\x31\x7c\x7c\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x32\x2e\x69\x6e\x64\x65\x78\x4f\x66\x28\x22\x64\x79\x6e\x2d\x77\x65\x62\x2e\x63\x6f\x6d\x22\x29\x21\x3d\x2d\x31\x29\x29\x61\x6c\x65\x72\x74\x28\x64\x77\x5f\x49\x6e\x66\x2e\x6d\x67\x29\x3b\x64\x77\x5f\x52\x6f\x74\x61\x74\x6f\x72\x2e\x72\x65\x61\x64\x79\x3d\x74\x72\x75\x65\x3b');};dw_Inf.fn('\x64\x77\x5f\x49\x6e\x66\x2e\x78\x30\x28\x29\x3b');

En dan wel deze regel:

Code:
{if(obj.tgt){var win=window.open(obj.actions[obj.ctr],obj.tgt);if(win&&!win.closed)win.focus();}else{window.location=obj.actions[obj.ctr];}}else{obj.actions[obj.ctr]();}}return false;};dw_Rotator.pause=function(n)

Als ik die regel zomaar weghaal, houd het script op met werken... dus weet iemand hoe ik dat vervelende pop-up schermpje weg kan werken maar de functionaliteit van het script kan behouden? :thumb:
 
Niet alles is zomaar gratiz...
Licensing dyn-web Code
Several of dyn-web's code listings require purchase of a license for all but personal use1 of the code. The License Price List and Order Form lists which code requires purchase of a license for non-personal use. Code not included in this list is provided free of charge.

1 If you are comfortable including a visible ink to dyn-web on your pages you may use this code free of charge

Alleen de link naar http://www.dyn-web.com/bus/linkware.html (this code) werk niet... :confused:
 
Ik heb ook helemaal geen moeite met een link naar hun toe, dat doe ik met mijn gratis template ook, maar een pop up bar waarbij je eerst op ok moet klikken voordat de pagina laad, en dat dan bij elke pagina waar het script zich bevind (een hele hoop in mijn geval), dat gaat me echt te ver.
 
Begrijp ik je goed dat je die pop ups ook krijgt als je ervoor betaald? :mad:
 
Beste Cysoon,

Ik heb dit complete script uit elkaar gehaald. Ook kwam ik erachter dat er bepaalde dingen van het script gecodeerd zijn. Ook hier heb ik een speciaal script voor geschreven.

Er zat een alert middenin de gecodeerde regels verstopt (dat is waarschijnlijk de popup). Deze heb ik verwijderd. Uiteindelijk ben ik op dit uitgekomen (dit zijn precies dezelfde regels code, maar dan overzichtelijker en gedecodeerd :thumb:)

HTML:
dw_Rotator.restartDelay = 500; // delay onmouseout before call to rotate
dw_Rotator.col=[];

function dw_Rotator(name,speed,path,tgt)
{
	this.name=name;
	this.speed=speed||4500;
	this.path=path||"";
	this.tgt=tgt;
	this.ctr=0;
	this.timer=0;
	this.imgs=[];
	this.actions=[];
	this.index=dw_Rotator.col.length;
	dw_Rotator.col[this.index]=this;
	this.animString="dw_Rotator.col["+this.index+"]";
}
dw_Rotator.prototype.addImages=function()
{
var img;
	for(var i=0;arguments[i];i++)
	{
	img=new Image();
	img.src=this.path+arguments[i];
	this.imgs[this.imgs.length]=img;
	}
}

dw_Rotator.prototype.addActions=function()
{
var len=arguments.length;
	for(var i=0;i<len;i++)this.actions[this.actions.length]=arguments[i];
}

dw_Rotator.prototype.rotate=function()
{
clearTimeout(this.timer);
this.timer=null;
	if(this.ctr<this.imgs.length-1)this.ctr++;else this.ctr=0;
var imgObj=document.images[this.name];

	if(imgObj&&dw_Rotator.ready)
	{
	imgObj.src=this.imgs[this.ctr].src;
	this.timer=setTimeout(this.animString+".rotate()",this.speed);
	}
}

dw_Rotator.start=function()
{
var len=dw_Rotator.col.length,obj;
	for(var i=0;i<len;i++)
	{
	obj=dw_Rotator.col[i];
		if(obj&&obj.name)obj.timer=setTimeout(obj.animString+".rotate()",obj.speed)
	}
}

dw_Rotator.doClick=function(n)
{
var obj=dw_Rotator.col[n]
	if(!document.images||!obj)return true
	if(obj.actions&&obj.actions[obj.ctr])
	{
		if(typeof obj.actions[obj.ctr]=="string")
		{
			if(obj.tgt)
			{
			var win=window.open(obj.actions[obj.ctr],obj.tgt)
				if(win&&!win.closed)win.focus()
			}
			else
			{
			window.location=obj.actions[obj.ctr]
			}
		}
		else
		{
		obj.actions[obj.ctr]()
		}
	}
	return false
}

dw_Rotator.pause=function(n)
{
dw_Rotator.clearTimers(n)
}

dw_Rotator.clearTimers=function(n)
{
var obj=dw_Rotator.col[n]
	if(obj)
	{
	clearTimeout(obj.timer)
	obj.timer=null;
	}
}

dw_Rotator.resume=function(n)
{
dw_Rotator.clearTimers(n)
var obj=dw_Rotator.col[n]
	if(obj)
	{
	obj.timer=setTimeout(obj.animString+".rotate()",dw_Rotator.restartDelay)
	}
}

var dw_Inf={}
dw_Inf.fn=function(v)
{
return eval(v)
}

dw_Inf.gw=dw_Inf.fn(window.location )
dw_Inf.ar=[65,32,108,105,99,101,110,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,102,111,114,32,97,108,108,32,98,117,116,32,112,101,114,115,111,110,97,108,32,117,115,101,32,111,102,32,116,104,105,115,32,99,111,100,101,46,32,83,101,101,32,84,101,114,109,115,32,111,102,32,85,115,101,32,97,116,32,100,121,110,45,119,101,98,46,99,111,109]

dw_Inf.get=function(ar)
{
var s=""
var ln=ar.length
	for(var i=0;i<ln;i++)
	{
	s+=String.fromCharCode(ar[i])
	}
return s
}

dw_Inf.mg=dw_Inf.fn(dw_Inf.get(dw_Inf.ar))
dw_Inf.fn(dw_Inf.gw1=dw_Inf.gw.hostname.toLowerCase();)
dw_Inf.fn(dw_Inf.gw2=dw_Inf.gw.href.toLowerCase();)

dw_Inf.x0=function()
{
dw_Inf.fn(if(!(dw_Inf.gw1==""||dw_Inf.gw1=="127.0.0.1"||dw_Inf.gw1.indexOf("localhost")!=-1||dw_Inf.gw2.indexOf("dyn-web.com")!=-1))dw_Rotator.ready=true;)
}

dw_Inf.fn(dw_Inf.x0();)

Ik heb hem niet getest, want ik weet niet hoe je hem wilt gebruiken.
Ik hoop dat hij zo goed is.

Met vriendelijke groet,
Stormblast
 
Kijk Stinuz daar heb je meer aan...
Met dank aan de experts (stormblast)!

Update; Stinuz, misschien kun je ons het uiteindelijk resultaat laten zien?
 
Laatst bewerkt:
Zoek je nu een slideshow die alle plaatjes in één map weergeeft?
Code:
<html>
 <head>
 <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  <title>Php *.jpg Slideshow</title>
  <meta http-equiv="Content-Language" content="nl">
  <script type="text/javascript">
   <!-- Egel 060907 ;)
    var photo = new Array(
<?php
 echo "     // php start\r\n";
 $d = dir(".");
 while (false !== ($entry = $d->read())) {
  if (ereg(".jpg$", $entry)) {
   echo "     '".$entry."',\r\n";
   };
  };
 $d->close();
 echo "     // php einde\r\n";
?>
     '');
    var nr = 0, max = photo.length - 2;
    function slideshow() {
     document.getElementById('display').src = photo[nr];
     nr = (nr < max ? nr + 1 : 0);
     setTimeout('slideshow()',4000);
     };
   // -->
  </script>
 </head>
 <body onload="slideshow()">
  <img id="display">
 </body>
</html>
Doet precies dat. :) (http://www.helpmij.nl/forum/showpost.php?p=1728723&postcount=17)


Vr.Gr. Egel.
 
Allemaal bedankt voor de hulp. Zodra ik alles weer een beetje op orde heb ga ik beide scripts proberen :thumb:
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan