Results 1 to 7 of 7

Thread: problems Combining java shoutbox and flash

  1. #1
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default problems Combining java shoutbox and flash

    Hi all,

    I was wondering if somebody could help me to combine the javascript below with a flash effect in the header of my site.

    Code:
    function allonloads() {
    populate();
    LC_InitializeClocks();
    
    
    
    }
    LC_OtherOnloads=(window.onload)?window.onload:new Function;
    function popup(url, name, width, height) {
    	settings=
    	"toolbar=no,location=no,directories=no,"+
    	"status=no,menubar=no,scrollbars=yes,"+
    	"resizable=yes,width="+width+",height="+height+""
    	MyNewWindow=window.open(url,name,settings);
    }
    
    // Insert Smiles to text box
    function x () {
    	return;
    }
    
    function DoSmilie(addSmilie) {
    	var addSmilie;
    	var revisedMessage;
    	var currentMessage = document.shoutform1.ShoutComment.value;
    	revisedMessage = currentMessage+addSmilie;
    	document.shoutform1.ShoutComment.value=revisedMessage;
    	document.shoutform1.ShoutComment.focus();
    	return;
    }
    
    //Drop-Down menu functions
    function MM_findObj(n, d) {
    	var p,i,x;
    	if(!d) d=document;
    	if((p=n.indexOf("?"))>0&&parent.frames.length) {
    		d=parent.frames[n.substring(p+1)].document;
    		n=n.substring(0,p);
    	}
    	if(!(x=d[n])&&d.all) {
    		x=d.all[n];
    	}
    	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    	if(!x && d.getElementById) {
    		x=d.getElementById(n);
    	}
    	return x;
    }
    
    function MM_swapImage() {
    	var i,j=0,x,a=MM_swapImage.arguments;
    	document.MM_sr=new Array;
    	for(i=0;i<(a.length-2);i+=3) {
    	if ((x=MM_findObj(a[i]))!=null) {
    		document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
    	} }
    }
    
    function expand(listID) {
    	if (listID.style.display == "none") {
    		listID.style.display = "";
    	}
    	else {
    		listID.style.display = "none";
    	}
    	window.event.cancelBubble = true;
    }
    
    function contract(listID) {
    	if (listID.style.display == "show") {
    		listID.style.display = "";
    	}
    	else {
    		listID.style.display = "none";
    	}
    	window.event.cancelBubble = true;
    }
    
    //end Drop-Down menu functions
    
    /*
    Original Javascript code by dynamic drive.
    Modified javascript code by SuperCat http://www.ourscripts.net
    Special thanks to Dilandou for helping me with the PHP and JS mixing.
    Cross browser Marquee II-  Dynamic Drive (www.dynamicdrive.com)
    For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
    Credit MUST stay intact
    */
    
    // Start edit speed settings
    
    var scrollinterval=50; // Specify the refresh rate. This affects speed too. Larger is slower.
    var pauseit=1; //Pause marquee onmousever of text area (0=no. 1=yes)?
    
    // End edit speed and size settings
    
    ////NO NEED TO EDIT BELOW THIS LINE////////////
    
    var marqueespeed=1; // Specify speed (larger is faster 1-10) This is the amount of pixel movement per refresh. 1 is best for smoothness.
    marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1); //slow speed down by 1 for NS
    var copyspeed=marqueespeed;
    var pausespeed=(pauseit==0)? copyspeed: 0;
    var iedom=document.all||document.getElementById;
    var actualheight='';
    var cross_marquee, ns_marquee;
    
    function scrollup(){
    	copyspeed=marqueespeed+3;
    }
    function scrolldoubledown(){
    	copyspeed=marqueespeed-5;
    }
    
    var txt='';
    if (iedom||document.layers){
    	with (document){
    		if (iedom){
    			txt+='<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed">';
    			txt+='<div id="iemarquee" style="position:absolute;left:0px;top:0px;width:100%;">';
    			txt+='</div></div>';
    		}
    		else if (document.layers){
    			txt+='<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee">';
    			txt+='<layer name="ns_marquee2" width='+marqueewidth+' height='+marqueeheight+' left=0 top=0 onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed"></layer>';
    			txt+='</ilayer>';
    		}
    	}
    }
    
    function scrollmarquee(){
    	if (iedom){
    		if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) {
    			cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px";
    		}
    		else {
    			cross_marquee.style.top=parseInt(marqueeheight)+8+"px";
    		}
    	}
    	else if (document.layers){
    		if (ns_marquee.top>(actualheight*(-1)+8)) {
    			ns_marquee.top-=copyspeed;
    		}
    		else {
    			ns_marquee.top=parseInt(marqueeheight)+8;
    		}
    	}
    }
    
    function populate(){
    	if (iedom){
    		cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee;
    		cross_marquee.style.top=parseInt(marqueeheight)+8+"px";
    		cross_marquee.innerHTML=marqueecontent;
    		actualheight=cross_marquee.offsetHeight;
    	}
    	else if (document.layers){
    		ns_marquee=document.ns_marquee.document.ns_marquee2;
    		ns_marquee.top=parseInt(marqueeheight)+8;
    		ns_marquee.document.write(marqueecontent);
    		ns_marquee.document.close();
    		actualheight=ns_marquee.document.height;
    	}
    	lefttime=setInterval("scrollmarquee()",scrollinterval);
    }
    window.onload=allonloads;

    the javascript is a shoutbox and it seems to interfere with the current link effects in my header. when i hover my mouse over the link the pointer goes berserk.

    view my problem via this link: http://www.laatjeleiden.nl/main

    I could really use some help with this.
    tnx

    Goodfellah

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Which browser are you using? I can't see any problems using IE, Mozilla, Opera or Firefox.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Cr3ative,

    Thanks for the quick reply!
    I'm using the standard version of IE with my windows xp (6 i believe) but i get the same problem with other versions of IE on other computers.
    I'm sure it's possible for you to view the problem. just hover above the link buttons in the header and you'll see the pointer blink.
    When i put the shoutbox inactive the problem is gone.

    I hope you can help me.

    Greetings
    Goodfellah

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Still no problems; other members, do you see it?

    I'm using Service Pack 2, so it may be that... everyone in the world should have service pack 2 by the end of the year, so I wouldn't worry too much.

    Sorry I can't be of more help
    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  5. #5
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi again creative,

    Where did you get the sp2 i've been trying at microsoft but the only thing i can find is the pack for IT devellopers. Is this the one you're using?
    If not, could you post a downloadlink?

    please let me know because i'd really like to see for myself if this fixes my problem.

    greetings
    Goodfellah

  6. #6
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    www.windowsupdate.com

    "The best way to make sure that you get Windows XP SP2 is by turning on the Automatic Updates feature in Windows XP. Visit the Protect Your PC site to let us turn it on for you or follow these manual steps. Either way, you will receive Windows XP SP2 automatically.

    After you turn on Automatic Updates, your computer can start to download important updates automatically, including the latest version of Windows Update"

    Otherwise, the pack for IT developers is fine, but the download for standard users is only 90mb, not the IT dev 480mb.

    Other users: please don't post warez/illegal links to Service Pack 2. Microsoft are releasing it steadily through August, so there's no need to.

    cr3ative
    Last edited by cr3ative; 09-07-2004 at 02:43 PM.
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  7. #7
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've done what you said (microsoft has updated mij pc automaticaly) but i still have the same problem. And i still view the problem on all other computers. I think the cause of the problem lies somewhere else. In my view it must have something to do with the onload command and/ or the pause command. it seems the pointer hand reloads all the time while hovering over the flash link.

    I'd really appreciate it if you or somebody else could take another look at it.

    Here's the url again: http://www.laatjeleiden.nl/main

    Thanks!

    Greetings,
    John

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •