knish
Dec 2nd 2007, 11:28 pm
Hi,
I am a novice to php, javascript. Following is a code to insert movie. I had been to http://johnhaller.com/jh/useful_stuff/obfuscate_mailto/code/php/
Seen the code there. I've infused what I need into a format like that. Need to know if this is a proper syntax at first look. If it is fine then I shall test it
BRgds,
kNish
<?php
function InsertMovie(){
$strtag = "<script language="."Javascript"." type="text/javascript".">\n";
$strtag .= "<!--\n";
$strtag .= "document.write('<a href="<?php echo $row_display_image_Recordset['filePath_2K']; ?>"');\n";
$strtag .= "document.write('target="_BLANK"');\n";
$strtag .= "document.write('<img src="<?php echo $row_display_image_Recordset['thumbnail_Path']; ?>"');\n";
$strtag .= "document.write('width=\"140\" height=\"100\" alt=\"Thumbnail Image\" /></a>') . "</noscript>";
return $strtag;
}
?>
I am a novice to php, javascript. Following is a code to insert movie. I had been to http://johnhaller.com/jh/useful_stuff/obfuscate_mailto/code/php/
Seen the code there. I've infused what I need into a format like that. Need to know if this is a proper syntax at first look. If it is fine then I shall test it
BRgds,
kNish
<?php
function InsertMovie(){
$strtag = "<script language="."Javascript"." type="text/javascript".">\n";
$strtag .= "<!--\n";
$strtag .= "document.write('<a href="<?php echo $row_display_image_Recordset['filePath_2K']; ?>"');\n";
$strtag .= "document.write('target="_BLANK"');\n";
$strtag .= "document.write('<img src="<?php echo $row_display_image_Recordset['thumbnail_Path']; ?>"');\n";
$strtag .= "document.write('width=\"140\" height=\"100\" alt=\"Thumbnail Image\" /></a>') . "</noscript>";
return $strtag;
}
?>