TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-19-2008, 03:31 PM   #1 (permalink)
The Visitor
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Arsenal-World is on a distinguished road
Default Need Help

Can someone tell me how to put in a dhtml code in phpbb3?
This is the code-
<script type="text/javascript">

//Specify the slider's width (in pixels)
var sliderwidth="800px"
//Specify the slider's height
var sliderheight="100px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=3
//configure background color:
slidebgcolor="#F1F2ED"

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2601"><img src="http://www.goonersworld.co.uk/player19Almunia.jpg" border=0></a>'
leftrightslide[1]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2581"><img src="http://www.goonersworld.co.uk/player1diaby.jpg" border=0></a>'
leftrightslide[2]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2583"><img src="http://www.goonersworld.co.uk/player2sagna.jpg" border=0></a>'
leftrightslide[3]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2584"><img src="http://www.goonersworld.co.uk/player4fabregas.jpg" border=0></a>'
leftrightslide[4]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2585"><img src="http://www.goonersworld.co.uk/player5toure.jpg" border=0></a>'
leftrightslide[5]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2586"><img src="http://www.goonersworld.co.uk/player6senderos.jpg" border=0></a>'
leftrightslide[6]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2587"><img src="http://www.goonersworld.co.uk/player7rosicky.jpg" border=0></a>'
leftrightslide[7]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2589"><img src="http://www.goonersworld.co.uk/player8dudu.jpg" border=0></a>'
leftrightslide[8]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2590"><img src="http://www.goonersworld.co.uk/player9gallas.jpg" border=0></a>'
leftrightslide[9]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2591"><img src="http://www.goonersworld.co.uk/player10persie.jpg" border=0></a>'
leftrightslide[10]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2592"><img src="http://www.goonersworld.co.uk/player11hleb.jpg" border=0></a>'
leftrightslide[11]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2593"><img src="http://www.goonersworld.co.uk/player12Denilson.jpg" border=0></a>'
leftrightslide[12]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2594"><img src="http://www.goonersworld.co.uk/player13flamini.jpg" border=0></a>'
leftrightslide[13]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2595"><img src="http://www.goonersworld.co.uk/player14song.jpg" border=0></a>'
leftrightslide[14]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2596"><img src="http://www.goonersworld.co.uk/player15Gilberto.jpg" border=0></a>'
leftrightslide[15]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2597"><img src="http://www.goonersworld.co.uk/player16Djourou.jpg" border=0></a>'
leftrightslide[16]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2599"><img src="http://www.goonersworld.co.uk/player17Fabianski.jpg" border=0></a>'
leftrightslide[17]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2600"><img src="http://www.goonersworld.co.uk/player18Clichy.jpg" border=0></a>'
leftrightslide[18]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2582"><img src="http://www.goonersworld.co.uk/player3jens.jpg" border=0></a>'
leftrightslide[19]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2602"><img src="http://www.goonersworld.co.uk/player20Adebayor.jpg" border=0></a>'
leftrightslide[20]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2603"><img src="http://www.goonersworld.co.uk/player21Bendtner.jpg" border=0></a>'
leftrightslide[21]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2604"><img src="http://www.goonersworld.co.uk/player22Eboue.jpg" border=0></a>'
leftrightslide[22]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2605"><img src="http://www.goonersworld.co.uk/player23Traore.jpg" border=0></a>'
leftrightslide[23]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2606"><img src="http://www.goonersworld.co.uk/player24Hoyte.jpg" border=0></a>'
leftrightslide[24]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2607"><img src="http://www.goonersworld.co.uk/player25Walcott.jpg" border=0></a>'
leftrightslide[25]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2608"><img src="http://www.goonersworld.co.uk/player26diarra.jpg" border=0></a>'
leftrightslide[25]='<a href="http://www.goonersworld.co.uk/forum/viewtopic.php?f=44&t=2643"><img src="http://www.goonersworld.co.uk/player28M%25e9rida.gif" border=0></a>'

//Specify gap between each image (use HTML):
var imagegap=" "

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=5


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imageg ap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftr ightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+" px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slideme nu2
ns_slide2=document.ns_slidemenu.document.ns_slidem enu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style. left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style .left)+actualwidth+slideshowgap+"px"

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.styl e.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style .left)+actualwidth+slideshowgap+"px"

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshow gap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshow gap
}
}


if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';hei ght:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';hei ght:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script>
Arsenal-World is offline  
Reply With Quote
Old 01-19-2008, 11:08 PM   #2 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

Your question is a little bit vague Where abouts (what pages) do you want this HTML to appear in phpBB?

Alan
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
Old 01-19-2008, 11:18 PM   #3 (permalink)
The Visitor
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Arsenal-World is on a distinguished road
Default

Quote:
Originally Posted by Alan @ CIT View Post
Your question is a little bit vague Where abouts (what pages) do you want this HTML to appear in phpBB?

Alan
I would like the html to be below the user control panel part. This Is My Website- Arsenal-World
Arsenal-World is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:22 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design