hej nikolajdu
dig kan man vist altid regne med her . Tak for din hurtige interesse.
ja scriptet checker for plugin og erstatter med gif hvis plugin mangler. jeg vil gerne vide om flashclick(); kan side stilles med clickTAG?
og hvordan skrives det præcis i flash?
følgende script sat ind på html side er alt hvad jeg afleverer + .swf +.gif
To supply Flash banner perfectly, the code into which the Flash file is embedded normally has to be modified. That is not difficult because the following code can be copied. Only the colored items have to be changed. Normally it\'s only the title and name of the swf file, but if there are other sizes than 468x60, the specification of the size has to be changed, too. Even if some lines seem unusual, the code may not be changed at any line. Important for counting the Clicks: In the Flash file the JavaScript function \" FlashClick(); \" has to be called.
<script language=\"JavaScript\">
//Copyright 1999 ADTECH Advertising Service Providing GmbH Author: Heike Barmeyer
//IMGDATA ######## Don\'t delete this line! ########
var src=\"nichts.gif\"; //>
var outtext = src.substr(0, src.length - 10);
var ShockMode = 0;
// <A
var href=\"
http://www.clickaddress.com\";
// ></A>
function FlashClick() {
top.location=href;
}
if (navigator.mimeTypes && navigator.mimeTypes[\"application/x-shockwave-flash\"] &&
navigator.mimeTypes[\"application/x-shockwave-flash\"].enabledPlugin) {
if (navigator.plugins && navigator.plugins[\"Shockwave Flash\"])
ShockMode = 1; }
else
if (navigator.userAgent && navigator.userAgent.indexOf(\"MSIE\")>=0
&& (navigator.userAgent.indexOf(\"Windows 9\")>=0 || navigator.userAgent.indexOf(\"Windows NT\")>=0)) {
document.write(\'<SCRIPT LANGUAGE=VBScript\\> \\n\');
document.write(\'on error resume next \\n\');
document.write(\'ShockMode = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.3\")))\\n\');
document.write(\'</scr\' + \'ipt>\') }
</script>
<script language=\"Javascript\">
if (ShockMode){
document.write(\'<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\');
document.write(\' codebase=\"
http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0\"\');
document.write(\' id=\"flashname\" width=\"468\" height=\"60\">\');
document.write(\' <param name=\"movie\" value=\"\' + outtext +\'flashname.swf\">\');
document.write(\' <param name=\"quality\" value=\"autohigh\">\');
document.write(\' <param name=\"bgcolor\" value=\"#000000\">\');
document.write(\'<embed src=\"\' + outtext + \'flashname.swf\" name=\"flashname\"\');
document.write(\' swLiveConnect=true width=468 height=60\');
document.write(\' quality=\"autohigh\" bgcolor=\"#000000\"\');
document.write(\' type=\"application/x-shockwave-flash\" \');
document.write(\' pluginspage=\"
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">\');
document.write(\'</embed>\');
document.write(\'</object>\');
} else {
document.write(\'<a href=\"
http://www.clickaddress.com\"><img src=\\\"picturename.gif\\\" width=468 height=60 border=0 ></a>\');}
</script>