Hallo haase,
ActionScript:
getUrl("javascript: pic_1()")
JavaScript:
function pic_1() {window.open('bla.jpg',width=465,height=465)}
Wie muss das JavaScript aussehen, wenn ich per ActionScript
Filename und Bildgröße definieren will, damit ich nicht für jedes Bild eine eigene window.open-Zeile brauche?
Bau das ganze modular auf!
ActionScript:
getUrl("javascript: pic_1("bla.jpg", 465, 465);");
JavaScript:
function pic_1(url, width, height)
{
window.open(url, "width="+width+", height="+height);
}
Ich habs jetzt nicht ausgetestet, muesste aber gehen.
cu
Marc Reichelt || http://www.marcreichelt.de/
--
Linux is like a wigwam - no windows, no gates and an Apache inside!
SELFCode: ie:{ fl:| br:> va:} ls:< fo:} rl:( n4:( ss:) de:> js:| ch:? sh:| mo:) zu:)
http://emmanuel.dammerer.at/selfcode.html
Linux is like a wigwam - no windows, no gates and an Apache inside!
SELFCode: ie:{ fl:| br:> va:} ls:< fo:} rl:( n4:( ss:) de:> js:| ch:? sh:| mo:) zu:)
http://emmanuel.dammerer.at/selfcode.html