Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello Guys

Status
Not open for further replies.

kallo1982

Programmer
Sep 12, 2009
1
0
0
JO
Hello everybody ..
i cant combine my news content slider with image revolver .. how could i combine both codes .. shall i call my functions from different places ?
this is my header code :
-----------------------------------------------
<script type="text/javascript" src="jquery-1.3.1.js"></script>
<script type="text/javascript" src="jquery.easynews.plus.js"></script>
<script>
$(document).ready(function(){
var newsoption1 = {
firstname: "mynews2",
secondname: "showhere1",
thirdname:"news_display1",
fourthname:"news_button1",
playingtitle:"",
nexttitle:"",
prevtitle:"",
newsspeed:'8000'
}
$.init_plus(newsoption1);
var myoffset1=$('#news_button1').offset();
var mytop1=myoffset1.top-1;
$('#news_button1').css({top:mytop1});
});
</script>
<script language="JavaScript" type="text/javascript" src="ahahLib.js"></script>
<script language="JavaScript" type="text/javascript">
function getFuncs()
{
make(1);
MM_preloadImages('images/Buttons/main2.gif','images/Buttons/sj2.gif','images/Buttons/reyada2.gif',
'images/Buttons/islamiat2.gif','images/Buttons/sa7a2.gif','images/Buttons/neswan2.gif','images/Buttons/sadaqa2.gif',
'images/Buttons/sooq2.gif','images/Buttons/a5bar2.gif','images/Buttons/ta7meel2.gif','images/Buttons/sia7a2.gif',
'images/Buttons/montada2.gif','images/Buttons/6ara2ef2.gif','images/Buttons/matba52.gif','images/Buttons/tasweet2.gif',
'images/Buttons/video2.gif','images/Buttons/abraj2.gif','images/Buttons/tasmeem2.gif');
}
</script>
<script language="JavaScript"type="text/javascript">
<!--
function makeactive(tab) {
document.getElementById("tab1").className = "";
document.getElementById("tab2").className = "";
document.getElementById("tab3").className = "";
document.getElementById("tab"+tab).className = "active";
callAHAH('content.php?content= '+tab, 'content',
'getting content for tab '+tab+'. Wait...', 'Error');
}
function make(tab) {
document.getElementById("tabi1").className = "";
document.getElementById("tabi2").className = "";
document.getElementById("tabi3").className = "";
document.getElementById("tabi"+tab).className = "active";
callAHAH('contents.php?contents= '+tab, 'contents',
'getting content for tab '+tab+'. Wait...', 'Error');
}
function making(tab) {
document.getElementById("tabing1").className = "";
document.getElementById("tabing2").className = "";
document.getElementById("tabing3").className = "";
document.getElementById("tabing"+tab).className = "active";
callAHAH('contentss.php?contents= '+tab, 'contentss',
'getting content for tab '+tab+'. Wait...', 'Error');
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
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))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

-------------------
when i run this code .. i see (error in page ) if i change alittle i see the slider doesnt work .. or images dont revolve !! any idea please ?
 
why have you posted this in the php forum? is there a php element to the question?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top