freed102 Arayashiki | Masklinn a écrit :
Yahoo Mail ca marche avec Moz/Fox? pq ce sont ptet des ActiveX -_-
file nous le source stp, à voir le SC ca ressemble lourdement à des ActiveX ou des conneries du style -_-
Citation :
Je sais qu'il y a une fonction php qui envoie le contenu d'une page au navigateur avant que la page soit totalement interprétée coté serveur, je c plu comment ca s'appelle..
|
jamais du PHP n'est censé arriver côté client, excepté à la limite si on empêche son interprétation. stou.
Et commencer à envoyer la page en cours d'interprétation ca ne change rien, ca permet pas de la modifier une fois arrivée chez le client
|
Voila le source :
Code :
- <script type="text/javascript">
- <!--
- if(typeof top.frames["wmailmain"] != "undefined" ) window.open("http://mail.yahoo.com", "_top" );
- // -->
- </script>
- <noscript>
- <META HTTP-EQUIV=Refresh CONTENT="0; URL=/ym/login?nojs=1">
- </noscript>
- <script type="text/javascript" src="http://us.js1.yimg.com/us.yimg.com/
- lib/pim/r/medici/4/mail/mailcommonlib.js"></script>
- <script type="text/javascript">
- function Remove(index)
- {
- document.Attachments.action += "&Unattach_" + index + "=1";
- document.Attachments.submit();
- }
- function Done()
- {
- document.Compose.FName.value = ""; // prevent infinite loop
- document.Compose.submit();
- }
- function AttachMoreFiles()
- {
- document.Attachments.action += "&MoreAtt=1";
- document.Attachments.submit();
- }
- function VirusScanResults(index)
- {
- document.Attachments.action += "&VSumm=File" + index;
- document.Attachments.submit();
- }
- var nextHiddenIndex = 5;
- function AddFileInput()
- {
- ylib_getObj("fileInput" + nextHiddenIndex).style.display = document.all ? "block" : "table-row";
- nextHiddenIndex++;
- if(nextHiddenIndex >= 50) ylib_getObj("attachMoreLink" ).style.display = "none";
- }
- function KeyPress()
- {
- if (event.keyCode == 13) {
- BeginAttach();
- }
- }
- function UnescapeBackslash(path)
- {
- return path.replace(new RegExp("\", ["gi"]), "\\" );
- }
- function GoodMailTo()
- {
- var version = typeof document.all.ymAttach.Version == "undefined" ?
- "Product=1.0.0.0 File=0.0.0.0"
- :
- document.all.ymAttach.Version;
- var required = "Product=1.0.0.0 File=2003.4.16.1";
- return CompareVersions(GetVersion(version), GetVersion(required)) >= 0;
- }
- function HaveMailTo()
- {
- return typeof document.all.ymAttach.Version != "undefined";
- }
- function GetVersion(string)
- {
- var i = string.indexOf("File=" );
- if (i == -1) {
- return [0, 0, 0, 0];
- }
- var version = string.substr(i + 5).split("." );
- if (version.length != 4) {
- return [0, 0, 0, 0];
- }
- for (var i = 0; i < 4; i++) {
- version[i] = parseInt(version[i]);
- }
- return version;
- }
- function CompareVersions(v1, v2)
- {
- for (var i = 0; i < 4; i++) {
- if (v1[i] < v2[i]) {
- return -1;
- }
- if (v1[i] > v2[i]) {
- return 1;
- }
- }
- return 0;
- }
- function GetDisplayName(path)
- {
- var i;
- if (
- (i = path.lastIndexOf("\\" )) != -1
- ||
- (i = path.lastIndexOf("/" )) != -1
- ) {
- return i < path.length ? path.substring(i + 1) : "";
- }
- return path;
- }
- function BeginAttach()
- {
- if(!GoodMailTo())
- {
- document.all.stuff.style.display = "none";
- document.all.globalbuttonbartop.style.display = "none";
- document.all.globalbuttonbarbottom.style.display = "none";
- if (document.all.problem) {
- document.all.problem.style.display = "none";
- }
- document.all.progress.style.display = "inline";
- document.Attachments.UPL.value = "1";
- document.Attachments.target = "asynch";
- document.Attachments.submit();
- }
- else
- {
- for (var i=0; i<50; i++)
- {
- var e = document.Attachments["userFile" + i];
- if(e && e.value != "" )
- {
- document.all.stuff.style.display = "none";
- document.all.ymAttach.style.display = "inline";
- document.all.globalbuttonbartop.style.display = "none";
- document.all.globalbuttonbarbottom.style.display = "none";
- if (document.all.problem) {
- document.all.problem.style.display = "none";
- }
- window.setTimeout("FinishAttach()", 100);
- break;
- }
- }
- }
- }
- function FinishAttach()
- {
- for (var i = 0; i < 50; i++) {
- var e = document.Attachments["userFile" + i];
- if (e && e.value != "" ) {
- var path = e.value;
- var displayName = GetDisplayName(path);
- if (displayName == "" ) {
- document.Attachments.Prob.value = "BadFile";
- break;
- }
- document.all.ymAttach.AddFile(path, displayName);
- e.disabled = true;
- }
- }
- if (document.Attachments.Prob.value == "" ) {
- document.all.ymAttach.Upload();
- if (document.all.ymAttach.AttData == "" ) {
- document.Attachments.Prob.value = "NoUpload";
- }
- if (document.all.ymAttach.ResultErrorCode != 0) {
- if (document.all.ymAttach.ResultErrorCode & 2) {
- document.Attachments.Prob.value = "TotalSize";
- }
- else if (document.all.ymAttach.ResultErrorCode & 4) {
- document.Attachments.Prob.value = "NumFiles";
- }
- else if (document.all.ymAttach.ResultErrorCode & 32) {
- document.Attachments.Prob.value = "BadFile";
- }
- else if (document.all.ymAttach.ResultErrorCode & 64) {
- document.Attachments.Prob.value = "FileSize";
- }
- else {
- document.Attachments.Prob.value = "NoUpload";
- }
- }
- }
- document.Attachments.AttData.value = document.all.ymAttach.AttData;
- document.Attachments.submit();
- }
- function Initialize()
- {
- }
- function AsynchReady()
- {
- window.setTimeout("CopyFromAsynch()", 100);
- }
- function CopyFromAsynch()
- {
- if ( asynch == null ||
- asynch.document == null ||
- asynch.document.body == null ||
- typeof asynch.document.body.innerHTML == "undefined" )
- {
- return;
- }
- document.body.innerHTML = asynch.document.body.innerHTML;
- }
- </script>
- <script>
- function OnLoad()
- {
- if (
- window != window.top
- &&
- typeof window.top.AsynchReady != "undefined"
- ) {
- window.top.AsynchReady();
- }
- }
- </script>
- </head>
- <body>
- <script type="text/javascript">
- function Help(link)
- {
- window.open(link,"help","width=400,height=500,scrollbars=yes,dependent=yes" );
- }
- if(document.cookie != "" && document.cookie.indexOf("Fm3BBB" ) == -1) window.open("http://mail.yahoo.com", "_top" );
- var newWin=null;
- var onscreen=false;
- function NewWin(url,name,xpos,ypos,width,height)
- {
- newWin=window.open(
- url,
- name,
- "screenX="+xpos+",screenY="+ypos+",WIDTH="+width+",HEIGHT="+height+
- ",location=0,resizable=1,status=0,titlebar=1,
- directories=0,toolbar=0,menubar=0,scrollbars=0,status=0"
- );
- newWin.focus();
- onscreen=true;
- }
- </script>
|
Message édité par freed102 le 28-07-2004 à 12:55:45
|