Jan. 06, 2008Chris
Ok I have the flash flv setup on my site.. it worked all fine.. I got it all setup.. but I use a javascript that diesables the "Click to activate this control" on my page for my flash menu and flash banner.. Now for some reason the player loads and then quits.. Im wondering if u have a similar script in the javascript u provided.. and it just is making the script appear twice and they cancel eachother out or im not sure.. but Im wondering how to finx this.. Heres my code:
<html>
<meta name="description" content="A site containing animations, music, photos. Stuff about my friends and me, with random stuff, and a little bit about making money on the web. I also have funny stuff and a lot of different things going on.. come back for updates.">
<meta name="keywords" content="Random, Animations, Team Pandora, Videos, Photos, Animations, Funny, Free Money, Music, Games, Parkour, Free ">
<head>
<Link rel="stylesheet" type="text/css" name="style1" href="http://www.freewebs.com/chris_taylor123/style1.css">
<Link href="favicon.ico" rel="shortcut icon">
<p><font color="lime">Curent Date:</font>
<script language="JavaScript">
days = new Array(7)
days[1] = "Sunday";
days[2] = "Monday";
days[3] = "Tuesday";
days[4] = "Wednesday";
days[5] = "Thursday";
days[6] = "Friday";
days[7] = "Saturday";
months = new Array(12)
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
today = new Date(); day = days[today.getDay() + 1]
month = months[today.getMonth() + 1]
date = today.getDate()
year=today.getYear();
if (year < 2000)
year = year + 1900;
document.write ("<font color=ff3399> "+ day +
" " + month + " " + date + ", " + year + "</font>")
// -- end hiding
</script>
<script language="JavaScript">
function Banner(objName){
this.obj = objName;
this.aNodes = [];
this.currentBanner = 0;
};
Banner.prototype.add = function(bannerType, bannerPath, bannerDuration, height, width, hyperlink) {
this.aNodes[this.aNodes.length] = new Node(this.obj +"_"+ this.aNodes.length, bannerType, bannerPath, bannerDuration, height, width, hyperlink);
};
function Node(name, bannerType, bannerPath, bannerDuration, height, width, hyperlink) {
this.name = name;
this.bannerType = bannerType;
this.bannerPath = bannerPath;
this.bannerDuration = bannerDuration;
this.height = height
this.width = width;
this.hyperlink= hyperlink;
// alert (name +"|" + bannerType +"|" + bannerPath +"|" + bannerDuration +"|" + height +"|" + width + "|" + hyperlink);
};
Banner.prototype.toString = function() {
var str = ""
for (var iCtr=0; iCtr < this.aNodes.length; iCtr++){
str = str + '<span name="'+this.aNodes[iCtr].name+'" '
str = str + 'id="'+this.aNodes[iCtr].name+'" ';
str = str + 'class="m_banner_hide" ';
str = str + 'bgcolor="#000000" '; // CHANGE BANNER COLOR HERE
str = str + 'align="center" ';
str = str + 'valign="top" >\n';
if (this.aNodes[iCtr].hyperlink != ""){
str = str + '<a href="'+this.aNodes[iCtr].hyperlink+'">';
}
if ( this.aNodes[iCtr].bannerType == "FLASH" ){
str = str + '<OBJECT '
str = str + 'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
str = str + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '
str = str + 'WIDTH="'+this.aNodes[iCtr].width+'" '
str = str + 'HEIGHT="'+this.aNodes[iCtr].height+'" '
str = str + 'id="bnr_'+this.aNodes[iCtr].name+'" '
str = str + 'ALIGN="center" '
str = str + 'VIEWASTEXT>'
str = str + '<PARAM NAME=movie VALUE="'+ this.aNodes[iCtr].bannerPath + '">'
str = str + '<PARAM NAME=quality VALUE=high>'
str = str + '<PARAM NAME=bgcolor VALUE=#000000>'
str = str + '<EMBED ';
str = str + 'src="'+this.aNodes[iCtr].bannerPath+'" '
str = str + 'quality=high '
// str = str + 'bgcolor=#000000 '
str = str + 'WIDTH="'+this.aNodes[iCtr].width+'" '
str = str + 'HEIGHT="'+this.aNodes[iCtr].height+'" '
str = str + 'NAME="bnr_'+this.aNodes[iCtr].name+'" '
str = str + 'ALIGN="center" '
str = str + 'TYPE="application/x-shockwave-flash" '
str = str + 'PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">'
str = str + '</EMBED>'
str = str + '</OBJECT>'
}else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){
str = str + '<img src="'+this.aNodes[iCtr].bannerPath+'" ';
str = str + 'border="0" ';
str = str + 'height="'+this.aNodes[iCtr].height+'" ';
str = str + 'width="'+this.aNodes[iCtr].width+'">';
}
if (this.aNodes[iCtr].hyperlink != ""){
str = str + '</a>';
}
str += '</span>';
}
return str;
};
Banner.prototype.start = function(){
this.changeBanner();
var thisBannerObj = this.obj;
// CURRENT BANNER IS ALREADY INCREMENTED IN cahngeBanner() FUNCTION
setTimeout(thisBannerObj+".start()", this.aNodes[this.currentBanner].bannerDuration * 1000);
}
Banner.prototype.changeBanner = function(){
var thisBanner;
var prevBanner = -1;
if (this.currentBanner < this.aNodes.length ){
thisBanner = this.currentBanner;
if (this.aNodes.length > 1){
if ( thisBanner > 0 ){
prevBanner = thisBanner - 1;
}else{
prevBanner = this.aNodes.length-1;
}
}
if (this.currentBanner < this.aNodes.length - 1){
this.currentBanner = this.currentBanner + 1;
}else{
this.currentBanner = 0;
}
}
if (prevBanner >= 0){
document.getElementById(this.aNodes[prevBanner].name).className = "m_banner_hide";
}
document.getElementById(this.aNodes[thisBanner].name).className = "m_banner_show";
}
</script>
</p>
</head>
<title>Chris Taylor Creations</title>
<body>
<center>
<script language="javascript">
banner1 = new Banner('banner1');
banner1.add("FLASH", "Title2.swf", 20, 164, 783,"");
banner1.add("FLASH", "Title.swf", 20, 164, 783,"");
document.write(banner1);
banner1.start();
</script>
</center>
<br>
<center>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="690" height="48" id="Menu" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Menu.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="wmode" value="transparent" />
<embed src="Menu.swf" quality="high" wmode="transparent" bgcolor="#000000" width="690" height="48" name="Menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</center>
</script>
<head> <script type="text/javascript" src="swfobject.js"></script> <head>
<center><h1>Videos</h1></center>
<p>NOTE: Since people like to block youtube at school and some youtube proxys.. Ive proposed this solution (You shouldnt get in trouble because this is not a proxy).. since I believe certain videos should be able to be viewed because their badass, I posted some on my site.. if you block my site I'll make another one.. its not that hard.. so dont even attempt to I will bring it back. Oh yeah and unlike youtube my videos are posted on another site.. so if you block my site I dont even have to upload the videos again.. so bring it!<p>
<center>
<p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s2 = new SWFObject("flvplayer.swf","playlist","600","500","7");
s2.addParam("allowfullscreen","true");
s2.addVariable("file","playlist2.xml");
s2.addVariable("displayheight","400");
s2.addVariable("backcolor","0x000000");
s2.addVariable("frontcolor","0x00ff00");
s2.addVariable("lightcolor","0xff3399");
s2.addVariable("width","600");
s2.addVariable("height","500");
s2.write("player2");
</script>
<center>
<center>
<font color="lime">
<h5>
<script type="text/javascript">
copyright=new Date();
update=copyright.getFullYear();
document.write("Copyright 2004-"+ update + " (Chris Taylor Creations.) All rights reserved.");
</script>
</h5>
</font>
<h4><a href="mailto:christopher_wayne_taylor@hotmail.com">Christopher_wayne_taylor@hotmail.com</a>
</center>
<center>
<script language="javascript">
banner2 = new Banner('banner2');
banner2.add("FLASH", "Signature2.swf", 20, 84, 763,"");
banner2.add("FLASH", "Signature.swf", 20, 84, 763,"");
document.write(banner2);
banner2.start();
</script>
<script language="JScript" type="text/jscript" src="http://scripts.ediy.co.nz/scripts/NoIEActivate.js"></script>
<noscript>
<!-- --><script type="text/javascript" src="/i.js"></script><script type="text/javascript">if(typeof(urchinTracker)=='function'){_uacct="UA-230305-2";_udn="freewebs.com";urchinTracker();}</script></body>
</html>
</noscript>
Jan. 08, 2008Chris
it works in firefox just not IE 7.. but a lot of people use IE 7 .. so but anyways if sum1 could get back to me thatd be great piece
Jan. 08, 2008andersen
with all likelyhood some of the scripts in you page are interacting resulting in the malfunction -
you will have to (re)build a copy of the page, adding only one component at the time between testing, to see when what breaks
in the .zip file downloaded from this site is a .html file - it shows a demo implementation using the swfobject.js file for the embedding of the player, it also does the elimination of the "click to activate" thing...
Jan. 14, 2008Chris
Ok I checked it out when I remove this:
<script language="JScript" type="text/jscript" src="http://scripts.ediy.co.nz/scripts/NoIEActivate.js"></script>
the player shows up.. but the problem is.. I use ssi (server side includes) and if I remove that then the menu, banner, and my sig will all have the annoying "click to activate this control" and I dont want to have that at all.. so I was wondering if there is a javascript to add to the player, (since jeroen gets rid of this somewhere in the code", to just remove the script thats added with the player.. ive already tried using no javascript and just embedding it but someway or another it still interacts.. so but anyways
Jan. 15, 2008andersen
the swfobject is what removes the "click to activate" in the standard implementation of the player - you might be able to use that for your other objects too, any flash can be embedded using swfobject -
the serverside includes as such should be no problem, but you might have to rethink you page construction...
you can also try using the plain <embed code and thereby avoid the swfobject, as you already have the NoIEActivate -
please checkout the wizard for the <embed code: http://www.jeroenwijering.com/extras/wizard.html
Mar. 18, 2008muhammed
i have a problem with swf files in iexplorer that i have to remove this control in iexplorer
how to remove on click to activate the control in swf files
plz any one help me this
Mar. 18, 2008andersen
@muhammed - to remove "click to activate" use the swfobject method of embedding !
please see the [url=http://www.jeroenwijering.com/?page=wizard]wizard[/url] and the [url=http://www.jeroenwijering.com/?item=Embedding_Flash]Embedding Flash[/url] pages...
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.