Hello everyone, I wanted to make a 1227.com clone but I do not how to configure the .htaccess file.
This is the code, and I need to know how to configue the .htaccess file to play this code
[code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta name="google-site-verification" content="-hoHw9fPs8z5NKSCGS6RonJEs8tq_FiTLRSDVx4PC44" />
<meta http-equiv="content-type" content="text/html; charset=utf-8"><title>Saxroll!</title>
<script type="text/javascript">
<!--
if (self.parent.frames.length && self.parent.frames.length != 0) self.parent.location = document.location;
neva = "";
if(window.opera){
window.onkeydown = function(e){
if(e.keyCode != 18 && e.keyCode != 27 && e.keyCode != 32 && e.keyCode != 115){
if(Math.random() > .5) for(var i = 0; i < 35; i++) document.getElementById('roll').Back();
else for(var i = 0; i < 53; i++) document.getElementById('roll').Forward();
document.getElementById('roll').Play();
}
else if(e.keyCode == 115){
for(x in neva.split('\n')){
//alert(neva.split('\n')[x]);
}
}
return false;
}
}else{
window.onkeydown = function(e){
if(e.keyCode != 13 && e.keyCode != 27 && e.keyCode != 32){
if(Math.random() > .5) for(var i = 0; i < 35; i++) document.getElementById('roll').Back();
else for(var i = 0; i < 53; i++) document.getElementById('roll').Forward();
document.getElementById('roll').Play();
}
return false;
}
}
/* document.onkeydown = function(){
for(var i = 0; i < 35; i++) document.getElementById('roll').Back();
document.getElementById('roll').Play();
return false;
} */
window.resizeTo(640,610);
window.moveTo(0,0);
for (i = 1; i <= 9; i++){
setTimeout('window.moveTo(1599,1199);', i+"000");
i++;
setTimeout('window.moveTo(0,1199);', i+"000");
i++;
setTimeout('window.moveTo(1599,0);', i+"000");
i++;
setTimeout('window.moveTo(0,0);', i+"000");
}
//-->
</script></head><body>
<script type="text/javascript">
<!--
if(window.attachEvent){
document.body.onkeydown = function(){
if(Math.random() > .5) for(var i = 0; i < 35; i++) document.getElementById('roll').Back();
else for(var i = 0; i < 53; i++) document.getElementById('roll').Forward();
document.getElementById('roll').Play();
return false;
}
}
//-->
</script>
<!-- <div style="text-align: center;"><embed id="roll" src="saxroll.swf" height="385" width="640"></div> --><div style="text-align: center;">
<script type="text/javascript" src="swfobject.js"></script>
<div id="1_480x360.flv"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript">
var sd = new SWFObject('http://1227.com/mediaplayer.swf'
,'mpl','480','360','8');
sd.addVariable('autostart', 'true');
sd.addParam('allowscriptaccess','always');
sd.addParam('allowfullscreen','false');
sd.addVariable('height','385');
sd.addVariable('width','640');
sd.addVariable('file','saxroll.flv');
sd.write('1_480x360.flv');
</script></div>
<p style="text-align: center;">You have officially been Saxrolled!</p>
<p style="text-align: center;"> <b>***This site is for entertainment purposes and will not harm your computer.***</b>
<br/>
</p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-331164-29");
pageTracker._trackPageview();
} catch(err) {}</script> </body></html>
[/code]
What's that code supposed to do, and do you have any idea what an .htaccess file does?
Yes, it modifies the server
The code is supposed to do this
[url]www.1227.com[/url]
Why would you need a .htacces for a stupid website that jumps around using JS?
That loop, it is glorious.
You don't need .htaccess for any of this, and that's ALOT of stupid markup/code for something this simple. Get the loop, host it yourself (right now you're leeching it off 1227) as a static swf file and you're good to go.
This is not what htaccess is for.
[QUOTE=q3k;26140829]Why would you need a .htacces for a stupid website that jumps around using JS?[/QUOTE]
I use bluehost, apparently you need to enable Javascript
Also, can anyone please provide me with a code for something that jumps around with a video loop?
You have no idea what you're talking about. JS is purely clientside.
Here you go. Make a new HTML page. Paste the code below in. And there you got it.
[code]<html>
<head>
<title>Saxroll!</title>
</head>
<body>
<center><object width="550" height="400">
<param name="movie" value="http://saxroll.co.cc/saxroll.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object></center>
<p style="text-align: center;">You have officially been Saxrolled!</p>
<br>
<p style="text-align: center;"> <b>***This site is for entertainment purposes and will not harm your computer.***</b></p>
</body>
</html>
[/code]
Was it that hard? Took me 2 min.
I personally like the loop on 404.
[url]http://cdn.anyhub.net/thebest404pageever/swf/sexophone.swf[/url]
But hey! Whatever gets your sax on.
Arent <center> tags depricated?
yes
Funny, first he uses <center> and then <p align="center">. :iiam:
[QUOTE=Mr.T;26140354][code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta name="google-site-verification" content="-hoHw9fPs8z5NKSCGS6RonJEs8tq_FiTLRSDVx4PC44" />
<meta http-equiv="content-type" content="text/html; charset=utf-8"><title>Saxroll!</title>
<script type="text/javascript">
<!--
if (self.parent.frames.length && self.parent.frames.length != 0) self.parent.location = document.location;
neva = "";
if(window.opera){
window.onkeydown = function(e){
if(e.keyCode != 18 && e.keyCode != 27 && e.keyCode != 32 && e.keyCode != 115){
if(Math.random() > .5) for(var i = 0; i < 35; i++) document.getElementById('roll').Back();
else for(var i = 0; i < 53; i++) document.getElementById('roll').Forward();
document.getElementById('roll').Play();
}
else if(e.keyCode == 115){
for(x in neva.split('\n')){
//alert(neva.split('\n')[x]);
}
}
return false;
}
}else{
window.onkeydown = function(e){
if(e.keyCode != 13 && e.keyCode != 27 && e.keyCode != 32){
if(Math.random() > .5) for(var i = 0; i < 35; i++) document.getElementById('roll').Back();
else for(var i = 0; i < 53; i++) document.getElementById('roll').Forward();
document.getElementById('roll').Play();
}
return false;
}
}
/* document.onkeydown = function(){
for(var i = 0; i < 35; i++) document.getElementById('roll').Back();
document.getElementById('roll').Play();
return false;
} */
window.resizeTo(640,610);
window.moveTo(0,0);
for (i = 1; i <= 9; i++){
setTimeout('window.moveTo(1599,1199);', i+"000");
i++;
setTimeout('window.moveTo(0,1199);', i+"000");
i++;
setTimeout('window.moveTo(1599,0);', i+"000");
i++;
setTimeout('window.moveTo(0,0);', i+"000");
}
//-->
</script></head><body>
<script type="text/javascript">
<!--
if(window.attachEvent){
document.body.onkeydown = function(){
if(Math.random() > .5) for(var i = 0; i < 35; i++) document.getElementById('roll').Back();
else for(var i = 0; i < 53; i++) document.getElementById('roll').Forward();
document.getElementById('roll').Play();
return false;
}
}
//-->
</script>
<!-- <div style="text-align: center;"><embed id="roll" src="saxroll.swf" height="385" width="640"></div> --><div style="text-align: center;">
<script type="text/javascript" src="swfobject.js"></script>
<div id="1_480x360.flv"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript">
var sd = new SWFObject('http://1227.com/mediaplayer.swf'
,'mpl','480','360','8');
sd.addVariable('autostart', 'true');
sd.addParam('allowscriptaccess','always');
sd.addParam('allowfullscreen','false');
sd.addVariable('height','385');
sd.addVariable('width','640');
sd.addVariable('file','saxroll.flv');
sd.write('1_480x360.flv');
</script></div>
<p style="text-align: center;">You have officially been Saxrolled!</p>
<p style="text-align: center;"> <b>***This site is for entertainment purposes and will not harm your computer.***</b>
<br/>
</p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-331164-29");
pageTracker._trackPageview();
} catch(err) {}</script> </body></html>
[/code][/QUOTE]
uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
The code that deathslayer95 posted does not work
[QUOTE=Mr.T;26153076]The code that deathslayer95 posted does not work[/QUOTE]
It works fine. Do you not know how to name the HTML page? It worked for me. Its pretty much a duplicate of 1227.com. You can change the SWF file with [code]value="http://saxroll.co.cc/saxroll.swf">[/code]
Or edit it however you wish. Thats just the basic code.
-snip-
[QUOTE=Mr.T;26154376]I am completely new to HTML, can someone help me? :3
This is what shows up
[url]http://plasma-studios.net/russroll.html[/url][/QUOTE]
You included the BBCode tags off FacePunch or something.
Paste this: <html>
<head>
<title>Saxroll!</title>
</head>
<body>
<center><object width="550" height="400">
<param name="movie" value="http://saxroll.co.cc/saxroll.swf">
<embed src="player.swf" width="550" height="400">
</embed>
</object></center>
<p style="text-align: center;">You have officially been Saxrolled!</p>
<br>
<p style="text-align: center;"> <b>***This site is for entertainment purposes and will not harm your computer.***</b></p>
</body>
</html>
In your HTML page. And it should work.
A good site to teach you HTML is: [url]http://www.w3schools.com/html/default.asp[/url]
-snip-
Ninjas!
I wouldn't be surprised if bluehost support said that you need to enable javascript in .htaccess.
[QUOTE=Mr.T;26140644]Yes, it modifies the server
The code is supposed to do this
[url]www.1227.com[/url][/QUOTE]
Shit. I had an online test open for my CISP111 class. Thanks.
[QUOTE=MTMod;26187481]Shit. I had an online test open for my CISP111 class. Thanks.[/QUOTE]
Do you have any web common sense?
[QUOTE=MTMod;26187481]Shit. I had an online test open for my CISP111 class. Thanks.[/QUOTE]
Shouldn't you be making that test then?
[QUOTE=Fizzadar;26187538]Do you have any web common sense?[/QUOTE]
I've never heard of 1227.com if that's what you mean.
[QUOTE=MTMod;26187481]Shit. I had an online test open for my CISP111 class. Thanks.[/QUOTE]
So instead of finishing your online test, you argued on the internet.
[QUOTE=cas97;26189116]So instead of finishing your online test, you argued on the internet.[/QUOTE]
The test is only allowed to be taken once. I'll have to talk to my professor in class tomorrow so he can reset it.
[QUOTE=Fizzadar;26187200]I wouldn't be surprised if bluehost support said that you need to enable javascript in .htaccess.[/QUOTE]
i thought it would already be obvious that this is user ignorance, not host incompetence
OP: if you wanna make a website it would probably be good to lay the ground work instead of uploading random code you don't understand and expecting a result.
[QUOTE=MTMod;26239957]The test is only allowed to be taken once. I'll have to talk to my professor in class tomorrow so he can reset it.[/QUOTE]
hahahahahahahahahaha
ctrl+f4. lern2.
Sorry, you need to Log In to post a reply to this thread.