Help - Search - Members - Calendar
Full Version: Side Content Java Question
MonsterSmallBusiness Forums > MonsterCommerce > How do I?
proaudiomusic
I use a rotating news java thing on one of my other sites. I wanted to use this script now on my MC site to rotate tips and info on the right side menu.

Does anyone see any reason it wouldn't work on an MC site right side menu?

Also, in the code it has a frame. Would that be needed in MC's right side menu?

All code is in the body of the page.

_________________________________________



<body onLoad="random_iframe1()">
<script language="JavaScript1.2">
//Main news rotator

var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

//Specify IFRAME display attributes
var iframeprops='width=300 height=970 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//Specify random URLs to display inside iframe
var randomcontent=new Array()
randomcontent[0]="http://example.htm"
randomcontent[1]="http://exmaple2.htm"
randomcontent[2]="http://example3.htm"
randomcontent[3]="http://etc.htm"
//No need to edit after here
if (ie||dom)
document.write('<iframe id="dynstuff" src="" '+iframeprops+'></iframe>')

function random_iframe1(){
if (ie||dom){
var iframeobj=document.getElementById? document.getElementById("dynstuff") : document.all.dynstuff
iframeobj.src=randomcontent[Math.floor(Math.random()*randomcontent.length)]
}
}


</script>



Neil82591
As long as you use custom html coding in the right side you should be just fine. Keep in mind that the right side panel is only 140px wide though.

Just my 3 cents..... smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.