Dual boxing html [incomplete]

Go down

Dual boxing html [incomplete]

Post  macdema on Mon 9 Aug - 8:16

Edit:
MrMare has posted a much improved version on the 4th post.

Original:
Got this from the SS1 section but thought I'd just put it here to make things easier for people. I added in some other stuff for the heck of it, I got bored and I like making things fancier and more useful. My html/web coding knowledge is extremely limited....

Code:

<html>
<head></head>
<style>
* { margin: 0; padding: 0 ; border: 0; }
</style>
<body bgcolor=black>


<iframe name="F1" src=about:blank width="49.99%" height="92%" scrolling="yes" style="float: left"></iframe>
<iframe name="F2" src=about:blank width="49.99%" height="92%" scrolling="yes" style="float: right"></iframe>

<table width="100%" align="center">
<td width="20%">
<font color=white>
<p style="text-align:left">
<a href="http://sacredseasons.com/play/ss2/play.html" target="F1" title="Open A New Game Window">
<font size=2>
New Game
</a>
|
<a href=about:blank target="F1" title="Close Game Window">
Close Game
</a>
</p>
<td width="20%"><a href="http://sacredseasons2.wikia.com" target="_blank"><p style="text-align:center">wikia</a>
<td width="20%"><a href="http://orphanarium.forumotion.net/" target="_blank"><p style="text-

align:center">orphanarium forum</a>
<td width="20%"><a href="http://sacredseasons2.wikia.com/wiki/Loot#Weapon" target="_blank"><p style="text-

align:center">weapon loot</a>
<td width="20%">
<font color=white>
<p style="text-align:right">
<a href="http://sacredseasons.com/play/ss2/play.html" target="F2" title="Open A New Game Window">
<font size=2>
New Game
</a>
|
<a href=about:blank target="F2" title="Close Game Window">
Close Game
</a>
</font>
</p>
</table>

</body>
</html>
If anyone is able to clean up the code some since I'm sure I probably have some redundant code that'd be cool.

Info:
Copy and paste the code into notepad and save it as a *.html file, then open it with your browser.
It loads up a mostly blank page, hit "new game" on bottom left or right to load ss2 from the sacredseasons website. Use the scroll bars to move the game screen into place.
Disconnected from game while on two accounts? hit "new game" on the disconnected window, no need to refresh the whole page.
Want to go back to 1 account? hit "close game" to close it and save computer resources (i'd like for it to allow the other frame to take the whole screen when only one frame is in use but don't know how, if anyone can help, holla!)
Handy links at the bottom yay!

Problems:
The game window is way big so you may not be able to fit 2 game windows on your screen. I'm using a widescreen monitor and still cannot fit 2 full screens.
solution zoom out xP(chrome and firefox have zoom capabilities i believe)

The screen does not center on the game screen when it loads so you'll have to use the scroll bar to move it there. If someone knows how to code the scroll bar to jump to the center please let me know.
If you want to leave it big there's scroll bars that may be of use.....

Cannot get kong site on it, so kong users will have to hope the "save password" thing saves ur random godly kong assigned password.
solution log in using kong, then open a new game window and hopefully your name and password are in the field, if not hit "new game" again to reload it. It seems to cycle through different sets when you reload. I usually come across my other accounts and sometimes jsut blank fields. dunno what else to say


Last edited by macdema on Tue 17 Aug - 19:39; edited 1 time in total

macdema

Posts : 4
Reputation : 0
Join date : 2010-07-25

View user profile

Back to top Go down

Re: Dual boxing html [incomplete]

Post  mrmare on Wed 11 Aug - 0:48

Good idea, I really like it.
I used your code and improved it a bit, if anyone wants to see what I'm using, you can find it here:

http://mr-mare.wz.cz/ss2/dualbox.htm
avatar
mrmare

Posts : 37
Reputation : 0
Join date : 2009-11-29
Age : 30
Location : Czech Republic

View user profile

Back to top Go down

Re: Dual boxing html [incomplete]

Post  macdema on Wed 11 Aug - 8:11

I can't seem to load the page you have posted.

macdema

Posts : 4
Reputation : 0
Join date : 2010-07-25

View user profile

Back to top Go down

Re: Dual boxing html [incomplete]

Post  mrmare on Wed 11 Aug - 11:37

I noticed that too, but I don't know why. Sad Sorry.

Here's the code:
Code:
<html>
<head>
<style>
* {margin: 0px; padding: 0px; border: 0px;}
a {text-decoration: none;}
a:hover {text-decoration: underline;}
body {background-color: black;}
table {width: 100%; font: 13px Tahoma, Arial; color: white;}
td {text-align: center;}
#left, #right {width: 50%; height: 600px;}
</style>
<script type="text/javascript">
function newGame(td_id) {
   width_tmp = Math.floor(document.body.clientWidth/2);
   width = width_tmp > 700 ? 700 : width_tmp;
   height = width_tmp > 700 ? 600 : Math.floor(width*6/7);
   document.getElementById(td_id).innerHTML = '<center>' +
      '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
      'id="PreLoader" width="' + width + '" height="' + height + '"' +
      'codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">' +
         '<param name="movie" value="http://www.sacredseasons.com/play/ss2/PreLoader.swf">' +
         '<param name="quality" value="high">' +
         '<param name="bgcolor" value="#000000">' +
         '<param name="allowScriptAccess" value="sameDomain">' +
         '<embed src="http://www.sacredseasons.com/play/ss2/PreLoader.swf" quality="high" bgcolor="#000000"' +
            'width="' + width + '" height="' + height + '" name="PreLoader" align="middle"' +
            'play="true"' +
            'loop="false"' +
            'quality="high"' +
            'allowScriptAccess="sameDomain"' +
            'type="application/x-shockwave-flash"' +
            'pluginspage="http://www.adobe.com/go/getflashplayer">' +
      '</object>'
      '</center>';
}
 
function closeGame(td_id) {
   document.getElementById(td_id).innerHTML = ''
}
</script>
</head>
 
<body>
<table cellpadding="0" cellspacing="0">
<tr>
<td id="left"></td>
<td id="right"></td>
</tr>
<tr>
<td>
<a href="javascript:newGame('left')" title="New game (left)">New game</a> |
<a href="javascript:closeGame('left')" title="Close game (left)">Close game</a>
</td>
<td>
<a href="javascript:newGame('right')" title="New game (right)">New game</a> |
<a href="javascript:closeGame('right')" title="Close game (right)">Close game</a>
</td>
</tr>
<tr>
<td colspan="2"><br>useful links:<br>
<a href="http://sacredseasons2.wikia.com" target="_blank">Wikia</a> |
<a href="http://sacredseasons2.wikia.com/wiki/Loot" target="_blank">Loot page</a> |
<a href="http://orphanarium.forumotion.net" target="_blank">Orph forum</a> |
<a href="http://www.sacredseasons.com/guildroster/140/Orphanarium" target="_blank">Guild page</a> |
<a href="http://sacredseasons.com/forums/" target="_blank">Game forum</a>
</td>
</tr>
</table>
</body>
</html>
avatar
mrmare

Posts : 37
Reputation : 0
Join date : 2009-11-29
Age : 30
Location : Czech Republic

View user profile

Back to top Go down

Re: Dual boxing html [incomplete]

Post  macdema on Tue 17 Aug - 19:43

MrMare,

Is there any way you could start the game muted? I've been looking around and couldn't seem to find a parameter that worked on the game.... i tried 'mute' 'volume' and 'sound'.......

macdema

Posts : 4
Reputation : 0
Join date : 2010-07-25

View user profile

Back to top Go down

Re: Dual boxing html [incomplete]

Post  mrmare on Wed 18 Aug - 11:30

I don't know how to do it (yet), but I think it is possible. I'll try to find out and will let you know if I succeed. Wink
avatar
mrmare

Posts : 37
Reputation : 0
Join date : 2009-11-29
Age : 30
Location : Czech Republic

View user profile

Back to top Go down

Re: Dual boxing html [incomplete]

Post  mrmare on Wed 18 Aug - 22:53

I have bad news – I did some “research” and I am convinced it's not possible to do it this way. So I think the only way how to turn off the sound is in game.
avatar
mrmare

Posts : 37
Reputation : 0
Join date : 2009-11-29
Age : 30
Location : Czech Republic

View user profile

Back to top Go down

Re: Dual boxing html [incomplete]

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum