Javascript-форум (https://javascript.ru/forum/)
-   Общие вопросы Javascript (https://javascript.ru/forum/misc/)
-   -   Как Убрать Click here if you have Flash Player 6 ? (https://javascript.ru/forum/misc/8275-kak-ubrat-click-here-if-you-have-flash-player-6-a.html)

rentey 17.03.2010 22:28

Как Убрать Click here if you have Flash Player 6 ?
 
Добрый Вечер! Если открыть индексовый index.html файл Флэш вэб галереи, созданной в ФОТОШОП, выдается окно

Please upgrade your Flash Player.

Already have Flash Player? Click here if you have Flash Player 6 installed.

(Flash player установлен последней версии)

Как можно это убрать, чтобы сразу загружалась галерея?

В файле flashobject.js (на который ссылается Индекс) есть строчки, подскажите что нужно подправить, что бы при открытии индекса сразу происходила загрузка Галереи??

спасибо!

FlashObject = function(swf, id, w, h, ver, c) {
this.swf = swf;
this.id = id;
this.width = w;
this.height = h;
this.version = ver || 6; // default to 6
this.align = "middle"; // default to middle
this.redirect = "";
this.sq = document.location.search.split("?")[1] || "";
this.altTxt = "Please <a href='http://www.macromedia.com/go/getflashplayer'>upgrade your Flash Player</a>.";
this.bypassTxt = "<p>Already have Flash Player? <a href='?detectflash=false&"+ this.sq +"'>Click here if you have Flash Player "+ this.version +" installed</a>.</p>";
this.params = new Object();
this.variables = new Object();
if © this.color = this.addParam('bgcolor', c);
this.addParam('quality', 'high'); // default to high
this.doDetect = getQueryParamValue('detectflash');
}

qst13r1245r12 18.03.2010 22:25

заменить
this.bypassTxt = "<p>Already have Flash Player? <a href='?detectflash=false&"+ this.sq +"'>Click here if you have Flash Player "+ this.version +" installed</a>.</p>";
на
location.replace("?detectflash=false&"+ this.sq);

rentey 19.03.2010 14:00

спааасибо дорогой!)

qst13r1245r12 19.03.2010 17:48

пааажалста )


Часовой пояс GMT +3, время: 21:59.