HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: SWF within document.write()
Author: Joseph Dries
Date: 07/12/2003 07:12
 
> If httrack is not able to detect it, no. The engine tries 
> its best to detect embedded (even document.write ones) 
> links, but cases 'too complex' will never be solved (way 
> too complex to implement)

httrack is able to detect stuff like this:

==8<----
<SCRIPT language="JavaScript">
<!--
if (is_ie) {
  document.writeln('<link rel="stylesheet" 
href=http://www.dries.org/resources/en_US/Style-ie.css);
} else {
  document.writeln('<link rel="stylesheet" 
href=http://www.dries.org/resources/en_US/Style-ns.css);
}
//-->
</SCRIPT>
====8<--

But it isn't finding the SWF or JPG images in this:

==8<----
<script language="javascript">
<!--
if(getFlashVersion() >= 5) 
{
    document.write('<TR>\
      <TD VALIGN="TOP"><object classid=\"clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000\" 
codebase=http://download.macromedia.com/pub/shockwave/cabs
/flash/swflash.cab#version=5,0,0,0\" width=750 height=359>\
      <param name=movie 
value=http://www.dries.org/pics/en_US/index-main.swf 
<param name=quality value=\"high\">
      <embed src=http://www.dries.org/pics/en_US/index-
main.swf\"  loop=\"false\" quality=\"high\" width=750 
height=359 type=\"application/x-shockwave-flash\" 
pluginspage=http://www.macromedia.com/shockwave/download/i
ndex.cgi?P1_Prod_Version=ShockwaveFlash\"></embed>\
</object>\
        </TD>\
      </TR>'); 
} else {
    document.write('<TR>\
        <TD VALIGN="TOP">  <A 
HREF=http://www.dries.org/en_US/index.html<IMG 
SRC=http://www.dries.org/pics/en_US/index.jpg WIDTH=751 
HEIGHT=359 BORDER=0 ALT=\"\"  usemap="#index"></A>\
      </TD>\
    </TR>');
}
//-->
</script>
====8<--

Is that beyond it's scope?
-j
 
Reply Create subthread


All articles

Subject Author Date
SWF within document.write()

07/10/2003 08:07
Re: SWF within document.write()

07/10/2003 20:40
Re: SWF within document.write()

07/12/2003 07:12
Re: SWF within document.write()

07/19/2003 12:05




5

Created with FORUM 2.0.11