PDA

View Full Version : need help with code


the gimp
11-30-2010, 06:38 AM
i have these two adds and i need to stack on each other with a refreash rate of about three seconds. also i will be adding more adds so if some one can help me id appreciate



<p><a href="http://www.4wheelparts.com/default.aspx?utm_source=Affiliate&amp;utm_medium=CJ&amp;ut m_campaign=banner/"><img src="http://www.tqlkg.com/image-4222736-10458497" width="120" height="60" alt="Off-Road Wheels and Tires – 4WheelParts.com" /></a> </p>
<p><a href="http://www.kqzyfj.com/click-4222736-10448097"><img src="http://www.awltovhc.com/image-4222736-10448097" width="120" height="60" /></a></p>

Corrosive
11-30-2010, 06:56 AM
Is there a question attached to this post?

the gimp
11-30-2010, 06:59 AM
Is there a question attached to this post?
my bad ive been up for two days straight and im trying to finish 3 project and im bushed lol

i edited my post:mrgreen:

Corrosive
11-30-2010, 07:05 AM
OK, so you want ads that will change every three seconds. One space but multiple ads on a loop yeah?

the gimp
11-30-2010, 07:09 AM
yes thats what i wanting

Corrosive
11-30-2010, 07:10 AM
Here you go then; http://www.dyn-web.com/code/rotate_images/ This works a treat for what you want. Oh, and get some sleep dude ;)

edbr
11-30-2010, 07:13 AM
ive also used jquery slideshow to rotate banners

the gimp
11-30-2010, 07:16 AM
Here you go then; http://www.dyn-web.com/code/rotate_images/ This works a treat for what you want. Oh, and get some sleep dude ;)
thanks a million man

i plan on going to bed soon as i finish this8)

the gimp
11-30-2010, 08:29 AM
alright i cant get it to cycle the loop here is what i got and i still cant figure it out


<title>Demo</title>
<link rel="stylesheet" href="New Folder/css/ex.css" type="text/css">
<script src="New Folder/js/dw_event.js" type="text/javascript"></script>
<script src="New Folder/js/dw_rotator.js" type="text/javascript"></script>
<script type="text/javascript">
var rotator1 = {
path: 'images/',
id: 'r1',
speed: 3000, // default is 4500
bTrans: true, // ie win filter
bRand: false, // random rotation
bMouse: true, // pause/resume
images:["http://www.tqlkg.com/image-4222736-10458497", "http://www.awltovhc.com/image-4222736-10448097" ],
actions: ["index.html",
"http://www.4wheelparts.com/default.aspx?utm_source=Affiliate&amp;utm_medium=CJ&amp;ut m_campaign=banner/",
"http://www.kqzyfj.com/click-4222736-10448097",
]
}

function initRotator() {
dw_Rotator.setup(rotator1);
}

dw_Event.add( window, 'load', initRotator);
</script>
</head>
<body>

<a href="http://www.4wheelparts.com/default.aspx?utm_source=Affiliate&amp;utm_medium=CJ&amp;ut m_campaign=banner/"><img id="r1" src="http://www.tqlkg.com/image-4222736-10458497" " alt="" border="0"></a>

Corrosive
11-30-2010, 08:58 AM
Have you linked the javascript files and are they in the right place?

the gimp
11-30-2010, 10:19 AM
i did exactly what it said and i also went off the example demo files and it just wont work

Corrosive
11-30-2010, 10:49 AM
Well all I can say is it definiately works. I put it on a friend's site a year or so ago and it works like a charm; http://www.minisonthedragon.com/ (top right). You need to get some sleep and then re-visit the install instructions I think :)

the gimp
11-30-2010, 10:58 AM
Well all I can say is it definiately works. I put it on a friend's site a year or so ago and it works like a charm; http://www.minisonthedragon.com/ (top right). You need to get some sleep and then re-visit the install instructions I think :)

im going to take your advise on this cause i can tell my consideration is way bad and i could barley make since of directions on how to cook a microwave dinner:lol:

anyway thanks for your help so far, ill let you know what happens later

Corrosive
11-30-2010, 11:07 AM
Nothing worse than trying something new when you are hanging for 8hrs kip!