| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| n00b Registriert seit: Jun 2005
Beiträge: 271
| JavaScript geht im IE nicht
hi ich habe einen JavaScript-Aufruf im AS Code: function doit() {
getURL("javascript:alert('blabla');","_self");
}
doit(); hat jemand eine ahnung warum nicht? Gruß, phase
__________________ -- Don't eat yellow snow Geändert von phase (03-01-2007 um 01:12 Uhr) |
| | |
| | #2 (permalink) |
| notzucht Registriert seit: Nov 2003 Ort: Potsdam
Beiträge: 2.939
|
Ja, weil man erst die Suchmaschiene bedient, und dann Fragt. Oder sich wieder ein ... findet der Dir die Tippelei abnimmt. Klick (Beitrag 5) lg, shorty
__________________ . Flex in a week | Viertel vor halb nach Vollmond | ^^°.°^^ | Waltz with Bashir . |
| | |
| | #3 (permalink) | |
| n00b Registriert seit: Jun 2005
Beiträge: 271
| Zitat:
mein Problem ist eigentlich ein anderes: ich habe eine dynamische navigation die mit inhalten aus einem xml gefüttert wird. da ich vorher nicht weis wie lang (height) die navigation wird, benutze ich dies hier um das swf zu resizen. das funktioniert bei mir aber im IE nicht, da er scheinbar die js-funktion nciht aufruft. wenn ich sie manuell von hand, per onclick ausführe geht es. hier mein code: 1. Frame (XML-Laden) Code: stop();
Stage.scaleMode = "noScale";
Stage.align = "TL";
XMLdaten = new XML();
XMLdaten.ignoreWhite=true;
XMLdaten.load("http://"+_root.domainName+"/"+_root.xmlPath+".xml");
XMLdaten.onLoad = function(success) {
XMLdaten_links = [];
XMLdaten_captions = [];
if (success) {
for (var i=0; i<XMLdaten.firstChild.childNodes.length; i++) {
XMLdaten_links[i] = XMLdaten.firstChild.childNodes[i].attributes.url;
XMLdaten_captions[i] = XMLdaten.firstChild.childNodes[i].attributes.caption;
}
gotoAndStop(2);
}else {
this.msg.text = _root.xmlPath;
}
} Code: stop();
var nav_fmt:TextFormat = new TextFormat();
nav_fmt.font = "Arial";
nav_fmt.size = 12;
nav_fmt.color = 0x024079;
/* resize */
function resize() {
if (allowResize == "true") {
h = Math.ceil(this.holder_mc._y+this.holder_mc._height)-10;
getURL("javascript:setFlashHeight('flashid',"+h+");");
getURL("javascript:alert('blabla');","_self");
}
}
/*
Initialize objects on the stage depending on whether the browser supports resizing flash
*/
if (allowResize == "true") {
this.holder_mc.autoSize = "Left";
} else {
this.holder_mc._height = 274;
this.holder_mc._width = 175;
s = _root.attachMovie("FScrollBarSymbol", Scroller, 1, {_x:381, _y:28});
s.setSize(270);
s.setScrollTarget(this.holder_mc);
}
this.createEmptyMovieClip("holder_mc",1000);
this.holder_mc._x = 75;
this.holder_mc._y = 12;
for (var i=0; i<XMLdaten.firstChild.childNodes.length; i++) {
this.holder_mc.attachMovie("nav_btn", "navbtn_mc"+i,1000+i);
this.holder_mc["navbtn_mc"+i]._y = i*33;
this.holder_mc["navbtn_mc"+i].navtext.createTextField("label", this.getNextHighestDepth(), -30, -8, 155, 22);
this.holder_mc["navbtn_mc"+i].navtext.label.text = XMLdaten_captions[i];
this.holder_mc["navbtn_mc"+i].navtext.label.setTextFormat(nav_fmt);
this.holder_mc["navbtn_mc"+i].btn.link = XMLdaten_links[i];
this.holder_mc["navbtn_mc"+i].btn.onRelease = function() {
getURL(this.link, "_self");
};
}
resize();
this.holder_mc["navbtn_mc"+_root.active].gotoAndStop("s2");
this.holder_mc["navbtn_mc"+_root.active].btn.enabled = false; HTML-Code: <div id="flashid" style="width:175px; height:auto;"> <script type="text/javascript" language="JavaScript"> e = canResizeFlash(); document.write('<object data="fla/navigation.swf?domainName=showroom.de&xmlPath=/html/fla/navigation" width="100%" height="100%" type="application/x-shockwave-flash">'); document.write('<param name="movie" value="fla/navigation.swf?domainName=showroom.de&xmlPath=/html/fla/navigation" />'); document.write('<param name="FlashVars" value="allowResize='+e+'" />'); document.write('</object>'); </script> <noscript>Für diese Seite benötigst du JavaScript!</noscript> </div> Gruß, phase
__________________ -- Don't eat yellow snow | |
| | |
| | #4 (permalink) | |
| n00b Registriert seit: Jun 2005
Beiträge: 271
| Zitat:
__________________ -- Don't eat yellow snow | |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |