I'm studieing ASP and some Perl now and that will be not usable for U, so I think that it is a good idea to give U my javascriptcodes
If WebTrends and SQL are known 2 U than U know what I mean.
This is what it looks like
The above pics were generated with javascript-code.
a code for the pic and a code for the "time".
To place a pic:
create the function :
it's a raw cut , a textcopy out of this file's head
var nrShowit = 0 ;
function showpico(pictitl,nummer,leng,picnas,txtkleur,toevkleur) {
nrShowit += 1 ;
filIt(nummer,leng) ; si= df ;
document.write(""+pictitl+" ");
document.write("");
showPicnr = "pic" + nrShowit ;
document.write(" ");
if (picnas!=="") document.write(""+picnas+" ");
if (picNam()!== "Unknown"){ document.write("",picNam(),
" ");}
else
{document.write(". ");}
document.write("");
}
i stripped it and then it looks like this
This is comment
var nrShowit = 0 ; create a counter
function showpics(pictitl,picnas,txtkleur,toevkleur) { the function starts here with 4 parameters
p1=the title above the pic
p2=the title under the pic
p3=color of those titles
p4=another color
nrShowit += 1 ; counter + 1 document.write(""+pictitl+" ");writes first title, uses p3 and p1, this also starts the Link.
document.write("");the actual link, defined in the htmlbody
change blank to top or self to change appearance
showPicnr = "pic" + nrShowit ; initialize picname (= the word "pic" and a number) document.write("
I inserted a testmode, it wil show the ALTname as the thumbname else it will show the assigned name from the body.
if (checKIt)document.write(tumNam()) ;
else document.write(altNam());
Here's were the picture gets an unique name.
document.write(" name=" , showPicnr , " ");
This is for the Error-pictures.
if (picNam()!== "NoErrPic"){
document.write(" onError=\"defaultPic(\'" , showPicnr , "\')\"");
document.write(" onAbort=\"defAbPic(\'" , showPicnr , "\')\"");
};
and the end of the Link.
document.write("> "); the text under the pic.
if (picnas!=="") document.write(""+picnas+" ");
a switch to do something else
if (picNam()!== "Unknown"){ document.write("",picNam(),
" ");}
this one's for resetting HTMLvalues
else if you specify "Unknown" it will show just a dot.
{document.write(". ");}
document.write("");
} end of function "showpics"
The final code after stripping and without comments. a one without the counter
one pic only at a time and no errorpics available function showpics(pictitl,picnas,txtkleur,toevkleur) {
document.write(""+pictitl
+" ");
document.write("");
document.write(" ");
document.write(""+picnas+"
");
document.write("
", picNam()," ");
document.write(" ");
} ;You can call it using :
script
function fil2Open() {return ("\"picname1.jpg\"") } ;
function tumNam() {return ("\"tn_picname1.jpg\"") } ;
function altNam() {return ("\"pic_01\"") } ;
function picNam() {return ("Hot Stuff") } ;
showpics("Hot","Stuff","maroon","pink");
/script
I created a HTML-file with the above for testing purposes
Use it (if you want) to inflate HTML with Javascript
All the above links in a listing -The LinksList-
Only the HTTP Url's are listed