Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need help to convert some text with ASP to PHP


Kasketkarl.nu

Recommended Posts

Posted

I Have this header file from a .ASP file , that i needed to integreted with my new .PHP header file:

Its the Flash object im interest in... Because, it doesnt show the original flash object :S

 

ASP Code:

<% end if %>
<link rel="stylesheet" href="mobler.css">
<script type="text/javascript" src="swfobject.js">
</script>
<script language="JavaScript">
var myUrl;
myUrl=window.location.href;
</script>
</head>
<%
for each item in Request.Querystring
if item <> "language" then
 strQuerystring = strQuerystring & "&" & item & "=" & Request.Querystring(item)
end if
next
%>
<body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin=0 topmargin=0 bgcolor="#000000">
<%
If Request.Cookies("vispopup") <> "set" Then
Response.Write "<script type=""text/javascript"">window.open(""popup.asp"",""Møbelarkitekten"",""height=350,width=200,toolbar=0,status=0,menubar=0"")</script>"
Response.Cookies("vispopup") = "set"
Response.Cookies("vispopup").Expires = Date + 365
End If
%>
<table align="center" width="960" cellspacing="0" cellpadding="0" border="0">
<tr>
   <td width="960" valign="top">
<div align="center" valign="top" id="flashcontent">For at se denne side skal du have Flash Player version 8 eller højere og JavaScript slået til. Få det nyeste plugin her <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Flash-player</a> 
</div>
 <% if language="dk" then %>
 <script type="text/javascript"> 
  var so = new SWFObject("site.swf", "soTest", "960", "280", "6", "#ffffff");
  so.addVariable("r", myUrl); 
  so.addVariable("sprog", "0");
  so.addVariable("her", "1");
so.write("flashcontent"); 
</script>

<% elseif language="uk" then %>
 <script type="text/javascript"> 
  var so = new SWFObject("site.swf", "soTest", "960", "280", "6", "#ffffff");
  so.addVariable("r", myUrl); 
  so.addVariable("sprog", "1");
  so.addVariable("her", "1");
so.write("flashcontent"); 
</script>
<% end if %>


 

 

 

 

And then the PHP code:

 

 

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="960" height="280">
 <param name="movie" value="site.swf" />
 <param name="quality" value="high" />
 <param name="wmode" value="opaque" />
 <param name="swfversion" value="6.0.65.0" />
 <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
 <param name="expressinstall" value="Scripts/expressInstall.swf" />
 <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
 <!--[if !IE]>-->
 <object type="application/x-shockwave-flash" data="site.swf" width="960" height="280">
   <!--<![endif]-->
   <param name="quality" value="high" />
   <param name="wmode" value="opaque" />
   <param name="swfversion" value="6.0.65.0" />
   <param name="expressinstall" value="Scripts/expressInstall.swf" />
   <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
   <div>
     <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
     <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
   </div>
   <!--[if !IE]>-->
 </object>
 <!--<![endif]-->
</object></td>
 </tr>
 <tr>
   <td>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>

 

 

Thanks alot champ :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...