Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Web Cype CMS help

Experienced Elementalist
Joined
Aug 14, 2008
Messages
211
Reaction score
4
Hi, i know cype is an old cms but I am having a problem putting my javascript in.

If I use the javascript in a seperate webpage it works, but if I put it in to include it in one of my cype pages it does not work.

Here are the two pictures
Working:
jeffery30162 - Cype CMS help - RaGEZONE Forums


not working:
jeffery30162 - Cype CMS help - RaGEZONE Forums


This is inside of my slots.html:
Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Slot Machine in Javascript</title>
<meta name="description" content="Welcome to the Javascript version of Slot Machine written by Saurabh Odhyan"> 
<meta name="keywords" content="javascript, jquery, spritely, animation, sprite, background position, slot, game, games, saurabh, odhyan">
<style>
body {
	font-family:verdana,arial;
	padding:20px;
}
.bd {
	text-align:center;
}
.container {
	margin:0 auto;
	width:266px;
}
.slot-wrapper {
	 border: 1px solid #000000;
}
.slot {
	background:url("images/reel_normal.png") repeat-y; /*Taken from http://www.swish-designs.co.uk*/
	width:86px;
	height:70px;
	float:left;
	border:1px solid #000;
	background-position:0 4px;
}
.motion {
	background:url("images/reel_blur.png") repeat-y; /*Taken from http://www.swish-designs.co.uk*/
}
button {
	display:block;
	width:138px;
	height:33px;
	margin:20px 60px;
	font-size:16px;
	cursor:pointer;
}
#result {
	margin:20px 0;
	font-size:18px;
	font-weight:bold;
	height:22px;
}
.credits {
	font-size:15px;
	margin-top:20px;
}
.credits .browsers {
	font-style:italic;
	font-size:14px;
	color:#777;
	margin-top:4px;
}
.clear {
	clear:both;
}
</style>
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="jquery.spritely.js"></script>
<script src="jquery.backgroundPosition.js"></script>
<script src="slot.js"></script>
</head>


<body>
<div class="hd">
</div>
<div class="bd">
	<h1>Slot machine in Javascript</h1>
	<div class="container">
		<div class="slot-wrapper">
			<div id="slot1" class="slot"></div>
			<div id="slot2" class="slot"></div>
			<div id="slot3" class="slot"></div>
			<div class="clear"></div>
		</div>
		<div id="result"></div>
		<div><button id="control">Start</button></div>
	</div>
</div>
</body>

What could the issue be?

Thanks
 
Experienced Elementalist
Joined
Aug 14, 2008
Messages
211
Reaction score
4
nothing works when I press the button to spin, it is sub post to make noises.



beautiful, I fixed it thanks. It was a directory issue
 
Upvote 0
Back
Top