Shek wrote:Hello!
In many cases, you can not use the $ symbol Octuturpi in Javascript codes. Unfortunately, some forums do not recognize the codes and finally end up not working.
Please try using this code:
- Code:
jQuery(function() {
jQuery.getScript("http://sd-1.archive-host.com/membres/up/37821634957680146/deco/boule22.js");
});
If possible, add in Control
Panel > Modules > HTML and JavaScript > Create a new Script code >If not, keep us informed!
Regards,
Hi
Thanks for the replies. Unfortunately I tried the code in the Javascript Management section under Modules and have also tried it Display>Generalitlies and HTML section, but it is still not working.
Here is all the code I currently have;
<marquee> Welcome to the Nine Elms forum...We hope you have fun catching up on times gone by.... </marquee>
</br>
</br>
jQuery(function() {
jQuery.getScript("https://sd-1.archive-host.com/membres/up/37821634957680146/deco/boule22.js");
});
<script type="text/javascript">
var speed=20; // Speed/From the less to the more speed
var flakes=20; // Number of flakes
var flake_image="https://i.servimg.com/u/f67/15/17/71/53/nuevep10.png"; //URL of the image
var swide, shigh;
var dx=new Array();
var xp=new Array();
var yp=new Array();
var am=new Array();
var sty=new Array();
window.onload=function() { if (document.getElementById) {
var k, f, b;
b=document.createElement("div");
b.style.position="absolute";
b.setAttribute("id", "bod");
document.body.appendChild(b);
set_scroll();
set_width();
for (var i=0; i<flakes; i++) {
dx[i]=0;
am[i]=Math.random()*20;
xp[i]=am[i]+Math.random()*(swide-2*am[i]-25);
yp[i]=Math.random()*shigh;
sty[i]=0.75+1.25*Math.random();
f=document.createElement("div");
f.style.position="absolute";
f.setAttribute("id", "flk"+i);
f.style.zIndex=i;
f.style.top=yp[i]+"px";
f.style.left=xp[i]+"px";
k=document.createElement("img");
k.src=flake_image;
f.appendChild(k);
b.appendChild(f);
}
setInterval("winter_snow()", speed);
}}
window.onresize=set_width;
function set_width() {
if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (typeof(self.innerHeight)=="number") {
swide=self.innerWidth;
shigh=self.innerHeight;
}
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
else {
swide=800;
shigh=600
}
}
window.onscroll=set_scroll;
function set_scroll() {
var sleft, sdown;
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
document.getElementById("bod").style.top=sdown+"px";
document.getElementById("bod").style.left=sleft+"px";
}
function winter_snow() {
for (var i=0; i<flakes; i++) {
yp[i]+=sty[i];
if (yp[i]>shigh-30) {
xp[i]=am[i]+Math.random()*(swide-2*am[i]-25);
yp[i]=0;
sty[i]=0.75+1.25*Math.random();
}
dx[i]+=0.02+Math.random()/10;
document.getElementById("flk"+i).style.top=yp[i]+"px";
document.getElementById("flk"+i).style.left=(xp[i]+am[i]*Math.sin(dx[i]))+"px";
}
}
</script>
</br>
<center> <a href=http://www.southern-locomotives.co.uk target="_blank"><img src="https://i.servimg.com/u/f60/13/90/74/08/southe17.gif" alt="" /></a> </center>
</br>
<embed src="http://cp35005.podbean.com/mf/web/88tjqr/Bulleid.mp3"autostart="true" loop="False" hidden="true">
<style type="text/css">
img {border:none;
}
</style><div style="position:absolute; Top: 380%; left: 14px;">
<script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="https://www.facebook.com/pages/Nine-Elms-Dedication-Forum/174359172589342" show_faces="true" width="200"></fb:like></div><script type=text/javascript></script>
<meta http-equiv="refresh" content="600">
Hopefully this will give you some idea as to what the problem may be?
Thanks once again
Andy