JavaScript Test |
|
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 |
<script
Language="JavaScript">
<form method="POST" name=D> |
|
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>