PDA

View Full Version : Need a Image Rotator that is not an Onload Image Rotator...


Beaker
12-17-2007, 01:04 PM
So far all of the plugins I have seen are Daily or Onload Image Rotators...I need an image rotator that you can upload say 4 images and it just rotates through them at timed intervals. Does anyone know of such a plugin..I may have just overlooked it.
Thanks
Beaker

Mike Armas
12-17-2007, 01:14 PM
i got a inc file "Custome code" you can use you have to add a line of code in the body tag of your template.

I need to find it i would like to make it a plug-in

Beaker
12-17-2007, 02:05 PM
That would be awesome...are you going to post it here or do you want to IM Or email it to me.

Mike Armas
12-17-2007, 02:28 PM
my email is mike@armaswebdesign.com

Mike Armas
01-24-2008, 12:09 AM
here is the code

<script language="JavaScript" type="text/javascript">

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

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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->
// =======================================

// set the following variables

// =======================================



// Set slideShowSpeed (milliseconds)
var slideShowSpeed = "5000" // SHOW THE DATE ON THE PAGE



// Duration of crossfade (seconds)
var crossFadeDuration = "3" // SHOW THE DATE ON THE PAGE




// Specify the image files

var Pic = new Array() // don't touch this

// to add more images, just continue you might have to add the url like www.name.com/images

// the pattern, adding to the array below


Pic[0] = 'images/image1.jpg'

Pic[1] = 'images/image2.jpg'

Pic[2] = 'images/image3.jpg'

Pic[3] = 'images/image4.jpg'

Pic[4] = 'images/image5.jpg'

Pic[5] = 'images/image6.jpg'

Pic[6] = 'images/image7.jpg'

Pic[7] = 'images/image8.jpg'




// =======================================

// do not edit anything below this line

// =======================================



var t

var j = 0

var p = Pic.length



var preLoad = new Array()

for (i = 0; i < p; i++){

preLoad[i] = new Image()

preLoad[i].src = Pic[i]

}



function runSlideShow(){

if (document.all){

document.images.SlideShow.style.filter="blendTrans(duration=2)"

document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"

document.images.SlideShow.filters.blendTrans.Apply ()

}

document.images.SlideShow.src = preLoad[j].src

if (document.all){

document.images.SlideShow.filters.blendTrans.Play( )

}

j = j + 1

if (j > (p-1)) j=0

t = setTimeout('runSlideShow()', slideShowSpeed)

}


</script>

Then put this in your body tag

<body onLoad="runSlideShow()" >

Then the image you want to change out you need to give it a name like this

<img name="SlideShow" src="mike.jpg" width="165" height="320" border="0" alt="" />

thats it i been wanting to make this a free plug-in but i thought i just give it out.

Mike Armas
02-04-2008, 11:07 PM
http://addons.soholaunch.com/templates/other/ma_superbasic

NEW 2.7

Well after a few people asked me for a Image Rotator i thought it would be a nice to put it in this template.

So thast what i did you can add 4 image to the header image and they will rotate thought them.

egtou
02-09-2008, 05:18 AM
I am interested to use above script in my website www.egtours.com but I am using template from other designer. Is it possible to use it ?

Mike Armas
02-09-2008, 09:29 AM
yes you just have it edit your index.html and any other html file your template might have

egtou
02-09-2008, 10:55 PM
Shall I need to copy all the text above or there is specific texts should I copy and paste ? Can you highlight the script which should copy and which sould omit ?

Mike Armas
02-10-2008, 12:18 AM
You need all the code in your index.html

egtou
02-10-2008, 06:28 AM
Thank you, paste in content area or any where can i paste ?

egtou
02-10-2008, 06:51 AM
Shall I need to buy any of your software or just this script work itself ? because I try it on my page it does not worked.

http://www.egtours.com/index.php?pr=test

egtou
02-10-2008, 06:57 AM
I want to buy your daily image or banner rotator if it rotate as slide show and can put any where in the page like header or page content area.

Mike Armas
02-10-2008, 09:11 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>#PAGENAME#</title>
<link href="custom.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="motionpack.js"></script>
<!--[if IE]><style type="text/css">
img { behavior: url("#template_path_full_url#/pngbehavior.htc"); }
</style><![endif]-->

<script language="JavaScript" type="text/javascript">

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

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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->
// =======================================

// set the following variables

// =======================================



// Set slideShowSpeed (milliseconds)
var slideShowSpeed = "5000" // SHOW THE DATE ON THE PAGE



// Duration of crossfade (seconds)
var crossFadeDuration = "3" // SHOW THE DATE ON THE PAGE




// Specify the image files

var Pic = new Array() // don't touch this

// to add more images, just continue you might have to add the url like www.name.com/images

// the pattern, adding to the array below


Pic[0] = 'images/image1.jpg'

Pic[1] = 'images/image2.jpg'

Pic[2] = 'images/image3.jpg'

Pic[3] = 'images/image4.jpg'

Pic[4] = 'images/image5.jpg'

Pic[5] = 'images/image6.jpg'

Pic[6] = 'images/image7.jpg'

Pic[7] = 'images/image8.jpg'




// =======================================

// do not edit anything below this line

// =======================================



var t

var j = 0

var p = Pic.length



var preLoad = new Array()

for (i = 0; i < p; i++){

preLoad[i] = new Image()

preLoad[i].src = Pic[i]

}



function runSlideShow(){

if (document.all){

document.images.SlideShow.style.filter="blendTrans(duration=2)"

document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"

document.images.SlideShow.filters.blendTrans.Apply ()

}

document.images.SlideShow.src = preLoad[j].src

if (document.all){

document.images.SlideShow.filters.blendTrans.Play( )

}

j = j + 1

if (j > (p-1)) j=0

t = setTimeout('runSlideShow()', slideShowSpeed)

}


</script>

</head>

<body onLoad="slideup('featwrapper');" onLoad="runSlideShow()">
<div id="headwrapper">
<div id="head" class="clearfix">
<div id="logo_box"><a href="/index.php?pr=Home_Page"><img id="logo" width=322 height=118 src="images/_userimg-logo.png" alt="Home" border="0" /></a></div>
<div id="tagline"><img width=468 height=60 name="SlideShow" src="images/_userimg-ad_banner.png" alt="Home" border="0" /></a></div>
</div>
</div>
<div id="trimbar"></div>
<div id="featwrapper" style="display: none; overflow: hidden; height: 124px;">
<div id="feat" class="clearfix">
<div id="featleft">#NEWSBOX#</div>
<div id="featright">#PROMOTXT1#</div>
</div>
</div>
<div id="navwrapper">
<div id="nav" class="clearfix">
<div id="signup"><a href="javascript:;" onmousedown="toggleSlide('featwrapper');"><img src="images/hide-show.png" alt="Toggle the banner up or down" width="110" height="27" border="0" style="border: 0;" /></a></div>
<div id="mainnav">#HMAINS#</div>
</div>
</div>
<div id="contentwrapper">
<div id="maincontent" class="clearfix">
<div id="subnav">#VSUBS# </div>
<div id="content"><div id="date">#AUTODATESTAMP#</div>#CONTENT#</div>
</div>
</div>
<div id="footerwrapper">
<div id="footer">#COPYRIGHT#</div>
</div>
</body>
</html>




Here is all you need to have the banner image change. This is your template index.html file. This code it not a plug-in it can't just be added in the content you must edit your index.html file.

egtou
02-15-2008, 08:03 AM
If I buy your daily image rotator and can I customise it as I wish such as I want image rotating for time basis and want to use it in header and content area.

Mike Armas
02-15-2008, 11:49 AM
Well the one on the plug-in site not not my image rotator. So i really don't know what can be doen with it. You can email the maker of that plug-in and ask him.

The one a post here is just some free code. You can use it for anything it will just take some more know how to get it working.

The plug-ins are easy to use but not free.

egtou
02-16-2008, 12:49 AM
I just need free script which can put any whereever I like. Is that possible to customise above script without changing my original tempaltes ?

Because above may need to change whole setting of my template.

Mike Armas
02-16-2008, 10:37 AM
yes you can do it with this code. It is easy to do if you know a bit of html

egtou
02-18-2008, 08:02 AM
I try to made following changes but does not work. I could not fix it.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>#PAGENAME#</title>
<link href="custom.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="motionpack.js"></script>
<!--[if IE]><style type="text/css">
img { behavior: url("#template_path_full_url#/pngbehavior.htc"); }
</style><![endif]-->

<script language="JavaScript" type="text/javascript">

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

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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->
// =======================================

// set the following variables

// =======================================



// Set slideShowSpeed (milliseconds)
var slideShowSpeed = "5000" // SHOW THE DATE ON THE PAGE



// Duration of crossfade (seconds)
var crossFadeDuration = "3" // SHOW THE DATE ON THE PAGE




// Specify the image files

var Pic = new Array() // don't touch this

// to add more images, just continue you might have to add the url like www.egtours.com/images

// the pattern, adding to the array below


Pic[0] = 'http://www.egtours.com/images/promo1.png'

Pic[1] = 'http://www.egtours.com/images/taleju-temple.gif'

Pic[2] = 'images/image3.jpg'

Pic[3] = 'images/image4.jpg'

Pic[4] = 'images/image5.jpg'

Pic[5] = 'images/image6.jpg'

Pic[6] = 'images/image7.jpg'

Pic[7] = 'images/image8.jpg'




// =======================================

// do not edit anything below this line

// =======================================



var t

var j = 0

var p = Pic.length



var preLoad = new Array()

for (i = 0; i < p; i++){

preLoad[i] = new Image()

preLoad[i].src = Pic[i]

}



function runSlideShow(){

if (document.all){

document.images.SlideShow.style.filter="blendTrans(duration=2)"

document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"

document.images.SlideShow.filters.blendTrans.Apply ()

}

document.images.SlideShow.src = preLoad[j].src

if (document.all){

document.images.SlideShow.filters.blendTrans.Play( )

}

j = j + 1

if (j > (p-1)) j=0

t = setTimeout('runSlideShow()', slideShowSpeed)

}


</script>

Mike Armas
02-18-2008, 01:32 PM
where is the rest of it ?

egtou
02-18-2008, 10:50 PM
I do not need other thing like menu, contents, etc which are already in my template. If I put all text what ever in here it comes two times in the page so I removed it. Should I need to put all script over my template ?

Mike Armas
02-20-2008, 05:26 PM
what about this you tell me where you want the image to change and email me the image you want to use. With the soho username and password for your site and if you have ftp info also send that to me. I will do it for you

My email is mike@armaswebdesign.com

egtou
02-22-2008, 12:35 AM
Thanks for your post. So far I have been trying to edit and working but I could not add link on images. I want to have link on each images.

Mike Armas
02-22-2008, 08:46 AM
I have other free code you can use if you want links on eash image as they display.

egtou
02-24-2008, 01:37 AM
It would be great if it is available free. Can you paste it here ?

Mike Armas
02-26-2008, 11:07 PM
here is a great site to get a lot of free code.

http://www.dynamicdrive.com/

You do have to now code to get this stuff to work in soho