Hi! I am new here, I’ve started web developing a couple of weeks ago, and since I only have a little knowledge of java scripts I have also couple of questions…
I am modifying a new website which generates images from other site(photobucket, ripway, etc.)
I collected this scripts from the site, but if I use these scripts, I won’t get the images cause it is not in my web files, so I will use the images from my other site(external linking of images)…
Can you teach me how to correct these scripts?
Please help, and thanks in advance!
[CODE]//Determines Path for URL
function pathOnly (InString) {
LastSlash=InString.lastIndexOf (‘/’, InString.length-1)
OutString=InString.substring (0, LastSlash+1)
return (OutString);
}
[CODE]//Make into display Gif Format
function showGraf(fn)
{var extension = “.gif”
UrlPath=pathOnly (location.href);
picName = fn + extension
DisplayPic = UrlPath+fldr+picName
ShowPic='<IMG SRC= “‘+DisplayPic+'” ALT =”‘+fn+'” WIDTH=”‘+picWd+'” HEIGHT=”‘+picHt+'” ALIGN=”BOTTOM” NATURALSIZEFLAG=”3″>’
return ShowPic;
}