Modifier script
topalof
-
topalof -
topalof -
salut,j'aurais bien besoin de quelqu'un pour m'aider s'il vous plait:
je colle puis j'explique:
<script language="JAVASCRIPT">
<!--
function detectVersion()
{
version = parseInt(navigator.appVersion);
return version;
}
function detectOS() {
if(navigator.userAgent.indexOf('Win') == -1) {
OS = 'Macintosh';
} else {
OS = 'Windows';
}
return OS;
}
function detectBrowser(){
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'Netscape';
}
return browser;
}
function FullScreen(){
var adjWidth;
var adjHeight;
if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')){
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE'))
{
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape'))
{
adjWidth = 30;
adjHeight = 30;
}
if(detectVersion() < 4) {
//ligne suivante à modifier, voir §3 ci-dessous
self.location.href = 'oldbrowser.html';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
//ligne suivante à modifier, voir §2 ci-dessous
var thewindow = window.open('windowversion.html', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}
function MakeItSo(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
//ligne suivante à modifier, voir §2 ci-dessous
window.open('thefullscreen.html','windowname','fullscreen=yes');
} else {
onload=FullScreen();
}
}
// -->
</script>
il me faut Modifier ces lignes pour renvoyer l'URL du fichier que je veux mettre en plein écran :
var thewindow = window.open('windowversion.html', 'WindowName', winSize);
et
window.open('thefullscreen.html','windowname','fullscreen=yes');
puis Modifier aussi cette ligne pour renvoyer la page des utilisateurs possédant de vieux navigateurs :(si l'on peux s'en passer,je m'en fou)
self.location.href = 'oldbrowser.html';
(ca aussi,si je peux m'en passer,tant mieux)Créer un bouton dans le fichier Flash résident puis écrire le code suivant :
on (release) {
getURL ("javascript:MakeItSo()");
}
voila,si quelqu'un peux m'expliquer que modifier dans les deux premiere ligne à modifier pour l'url.
le but est que la page ou l'anim s'ouvre en plein ecran
regarder l'exemple en clickant sur ici à l'adresse suivant
http://www.actionscripts.org/french/intermediate/launch_full_screen/
bye
je colle puis j'explique:
<script language="JAVASCRIPT">
<!--
function detectVersion()
{
version = parseInt(navigator.appVersion);
return version;
}
function detectOS() {
if(navigator.userAgent.indexOf('Win') == -1) {
OS = 'Macintosh';
} else {
OS = 'Windows';
}
return OS;
}
function detectBrowser(){
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'Netscape';
}
return browser;
}
function FullScreen(){
var adjWidth;
var adjHeight;
if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')){
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE'))
{
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape'))
{
adjWidth = 30;
adjHeight = 30;
}
if(detectVersion() < 4) {
//ligne suivante à modifier, voir §3 ci-dessous
self.location.href = 'oldbrowser.html';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
//ligne suivante à modifier, voir §2 ci-dessous
var thewindow = window.open('windowversion.html', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}
function MakeItSo(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
//ligne suivante à modifier, voir §2 ci-dessous
window.open('thefullscreen.html','windowname','fullscreen=yes');
} else {
onload=FullScreen();
}
}
// -->
</script>
il me faut Modifier ces lignes pour renvoyer l'URL du fichier que je veux mettre en plein écran :
var thewindow = window.open('windowversion.html', 'WindowName', winSize);
et
window.open('thefullscreen.html','windowname','fullscreen=yes');
puis Modifier aussi cette ligne pour renvoyer la page des utilisateurs possédant de vieux navigateurs :(si l'on peux s'en passer,je m'en fou)
self.location.href = 'oldbrowser.html';
(ca aussi,si je peux m'en passer,tant mieux)Créer un bouton dans le fichier Flash résident puis écrire le code suivant :
on (release) {
getURL ("javascript:MakeItSo()");
}
voila,si quelqu'un peux m'expliquer que modifier dans les deux premiere ligne à modifier pour l'url.
le but est que la page ou l'anim s'ouvre en plein ecran
regarder l'exemple en clickant sur ici à l'adresse suivant
http://www.actionscripts.org/french/intermediate/launch_full_screen/
bye
A voir également:
- Modifier script
- Modifier dns - Guide
- Modifier liste déroulante excel - Guide
- Script vidéo youtube - Guide
- Modifier extension fichier - Guide
- Comment modifier une story sur facebook - Guide