JavaScript Test

Try it for FREE!

Many web site using JavaScript to link to pictures, PicaLoader can analyst these web site completely, here is some example.

You can use PicaLoader to download pictures from this page(9 Pictures), and compare with other tools.

Settings

Result

Popup picture window by click item in List Box.

<script Language="JavaScript">
function TestList(n)
{
strURL = "images/";
if (n == 1) strURL = "rose"; else if (n == 2) strURL = "motor";
else if (n == 3) strURL = "2cat"; else if (n == 4) strURL = "bmw";
else if (n == 5) strURL = "sea"; else if (n == 6) strURL = "fishs";
strURL = strURL+".jpg";
open(strURL);
}
</script>

<form method="POST" name=D>
<select size="6" name=D1 OnChange=TestList(value)>
<option value="1">Picture 1</option>
<option value="2">Picture 2</option>
<option value="3">Picture 3</option>
<option value="4">Picture 4</option>
<option value="5">Picture 5</option>
<option value="6">Picture 6</option>
</select></td>
</form>

Popup picture window by press Button.

<script Language="JavaScript">
function ImgDir()
{
return ("images/");
}

function TestButton()
{
strURL = ImgDir();
strURL = strURL + "dragon.gif";
open( strURL );
}
</script>

<button name="B1" OnClick=javascript:TestButton()><font face="Times New Roman">Picture 7</font></button>
 
Picture 8

Popup picture window by click a JavaScript link.

<script Language="JavaScript">
function TestLink()
{
str1 = "born to be wild ";
str2 = ImgDir();
strURL = str2 + str1.substring(11, 2222);
strURL = strURL + ".jpg";
open( strURL );
}
</script>
<a href=javascript:TestLink()><font size=2 face="Times New Roman">Picture 8</font></a>

<script Language="JavaScript">
function DynaLink(str1)
{
strURL = ImgDir();
strURL = strURL + str1;
strURL = strURL + ".jpg";
return( strURL );
}
</script>

<script Language=JavaScript>
document.writeln("<a href="+DynaLink('river')+">Dynamic link</a>");
</script>