Jump to content

Recommended Posts

Posted

I have this code as html.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="Description" content="Website by Rafal" />
<meta name="Keywords" content="l2" />
<link rel="Stylesheet" type="text/css" href="menu.css" />
<title>L2 Abyss World</title>
</head>

<body>
<div id="outside_container">
<div id="container">
</div></div>
<center>
<div id="obj">
	<object type="application/x-shockwave-flash" data="l2.swf" width="1024" height="450">
		<param name="quality" value="high">
		<param name="wmode" value="transparent">
		<param name="menu" value="false">
	<div>
		<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
		<p><a href="www.adobe.com/go/getflashplayer.html"><img src="images/skin/get_flash_player.html" alt="Get Adobe Flash player" width="112" height="33"></a></p>
	</div>
	</object>
</div>


<div id="all">
    <div style="height: 0px;">
        <a href="index.html" id="logo"></a>
    </div>

    <table cellpadding="0" border="0" cellspacing="0" style="margin-top: 476px;" summary="">
        <tr>
            <td>
            </td>
        </tr>
    </table>

    <div class="clear"></div>

    <div id="menu"><div id="menutext">
        <a href="/" class="active">Home</a>
       <span></span>
        <a href="/">Forum</a>
        <span></span>
        <a href="/">FAQ</a>
        <span></span>
        <a href="/">Download</a>
        <span></span>
        <a href="/">Contact</a>
        <span></span>
        <div style="clear: both;"></div>
    </div>
</div>

<div id="umenut"></div>
<div id="umenub"></div>
<div id="umenur"></div>
<div id="umenul"></div>
<div class="clear"></div></div></div>

<div id="kamael">
</div>

<div id="vote">
</div>

<div id="board">
</div>

<div id="status">
</div>

<div id="util">
</div>

<div id="follow">
</div>

<div id="footer">
</div>

<div id="mainbox">
</div>

</center>
</body>
</html>

 

 

and this code as css

 

/*
Body & Header
*/
body {
margin: auto;
width:100%; 
height: 100%;
    background: #212121;
    font-size: 12px;
    font-family: "Trebuchet MS", sans-serif;
    line-height: 2px;
}

#logo{
margin: auto;
width:100%; 
height: 100%;
background:url(images/logo.png) no-repeat;
    display: block;
    height: 476px;
    width: 1280px;
}

#obj{
margin: auto;
width:100%; 
height: 100%;
    display: block;
    position: absolute;
    top: 25px;
right: 17px;
}

img { border: none; }
a { color: #ffffff; text-decoration: none; }

#all {
    width: 1280px;
    margin: auto;
}

#all2 {
    line-height: 16px;
}

#all3 {
    width: 1280px;
    margin: auto;
}

/*
Menu
*/

#menu {
    background: url(images/menubg.png);
    height: 68px;
    padding-left: 90px;
    overflow: hidden;
    }	

#menu a {
   display: block;
   float: left;
   padding: 35px 0px 0px 0px;
   width: 75px;
}

#menu a:hover, #menu .active {
    background: url('images/menu_akt.png')no-repeat;
    width: 75px;
    height: 68px;
    color: #3399ff;
    
}

#menutext
{
font-size: 14px;
    text-align:center;
color:ffffff;
}

#umenut
{
margin: auto;
background:url(images/umenu.png) no-repeat;
    height: 2px;
    width: 1280px;
float: bottom;
}
#umenub
{
margin: auto;
background:url(images/umenu.png) no-repeat;
    height: 3px;
    width: 1280px;
position:absolute;
    top:1490px;
}
#umenul
{
margin: auto;
background:url(images/umenu1.png) no-repeat;
    height: 948px;
    width: 2px;
position:absolute;
    left:1589px;
top: 544px;
}
#umenur
{
margin: auto;
background:url(images/umenu1.png) no-repeat;
    height: 948px;
    width: 2px;
  position:absolute;
   right:1589px;
top: 544px;
}

.clear {
    clear: both;
}

/*
Vote
*/

#vote{
background:url(images/vote.png) no-repeat;
    height: 300px;
    width: 188px;
position:absolute;
left:1225px;
top:635px;
}


#kamael{
background:url(images/kamael.png) no-repeat;
    height: 238px;
    width: 171px;
margin: auto;
position:absolute;
left:1285px;
top:440px;
}

/*
Main
*/

#board{
background:url(images/main.png) no-repeat;
    height: 955px;
    width: 1280px;
margin: auto;
display:block;
margin: auto;
top:553px;
left: 300px;
}

/*
Server Status
*/

#status{
background:url(images/status.png) no-repeat;
    height: 292px;
    width: 250px;
margin: auto;
position:absolute;
right:1225px;
top:570px;
}

/*
Utilities
*/

#util{
background:url(images/util.png) no-repeat;
    height: 400px;
    width: 188px;
margin: auto;
position:absolute;
right:1225px;
top:880px;
}

/*
Follow
*/

#follow{
background:url(images/follow.png) no-repeat;
    height: 401px;
    width: 188px;
margin: auto;
position:absolute;
left:1225px;
top:945px;
}

/*
footer
*/

#footer{
background:url(images/footer.png) no-repeat;
    height: 123px;
    width: 936px;
margin: auto;
position:absolute;
left:483px;
top:1350px;
}

/*
Mainbox
*/

#mainbox{
background:url(images/mainbox.png) no-repeat;
    height: 650px;
    width: 580px;
margin: auto;
position:absolute;
left:664px;
top:660px;
}

 

I see my site perfect but when i watch it from someones else it is so messed up.Any idea why?

Posted

Well I won't do the copy paste now to see what it does but certainly it depends on the browser. If you upload it somewhere to see it and tell me which broswer doesn't seem to render it right, then I might can help you out ;)

Posted

I used some of ur code as i bought a desing from snoopi.The thing is that i get these weird situations that i dont run with ur 2 projects u did for snoopi.Id like a help.But see u tommorow ill be glad if u could help me i am like 20 hours coding all day long >.<

Posted

I fixxed everything and all works correctly.The only problem is that hover effect and active effect over menu doesnt stay when i change pages.Any help?

/*
Menu
*/

#menu {
    background: url(images/menubg.png);
    height: 68px;
    padding-left: 40px;
    overflow: hidden;
    }	

#menu a {
   display: block;
   float: left;
   padding: 35px 0px 0px 0px;
   width: 85px;
}

#menu a:hover, #menu .active {
    background: url('images/menu_akt.png')no-repeat;
    width: 75px;
    height: 68px;
    color: #3399ff;
    
}

#menutext
{
font-size: 14px;
    text-align:center;
color:ffffff;
}

Posted

  <div id="menu"><div id="menutext">
      <a href="/" class="active">Home</a>
       <span></span>
        <a href="/">Forum</a>
        <span></span>
        <a href="/">FAQ</a>
        <span></span>
        <a href="/">Download</a>
        <span></span>
        <a href="/">Contact</a>
        <span></span>
        <div style="clear: both;"></div>

 

cause this give this effect  <a href="/" class="active">Home</a>

 

so when you want do next page with it  <a href="/" class="active">Faq</a>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • I open the l2j server and see 1. XOR->NewCrypt.encXORPass(raw, offset, size, Rnd.nextInt()); ---> xor everything is clear 2. _staticCrypt.crypt(raw, offset, size); -----> private void encryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex) { int xl = bytesTo32bits(src, srcIndex); int xr = bytesTo32bits(src, srcIndex + 4); xl ^= P[0]; for (int i = 1; i < ROUNDS; i += 2) { xr ^= func(xl) ^ P[i]; xl ^= func(xr) ^ P[i + 1]; } xr ^= P[ROUNDS + 1]; bits32ToBytes(xr, dst, dstIndex); bits32ToBytes(xl, dst, dstIndex + 4); }   I scroll down the code and see this code   ----->>> /**      * Decrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset. The input will be an exact multiple of our blocksize.      * @param src      * @param srcIndex      * @param dst      * @param dstIndex      */     private void decryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex)     {         int xl = bytesTo32bits(src, srcIndex);         int xr = bytesTo32bits(src, srcIndex + 4);         xl ^= P[ROUNDS + 1];         for (int i = ROUNDS; i > 0; i -= 2)         {             xr ^= func(xl) ^ P[i];             xl ^= func(xr) ^ P[i - 1];         }         xr ^= P[0];         bits32ToBytes(xr, dst, dstIndex);         bits32ToBytes(xl, dst, dstIndex + 4);     }   ===================================================   I'm transferring this code to C# private void decryptBlock(byte[] src, uint srcIndex, byte[] dst, uint dstIndex)    {        uint xl = BytesTo32bits(src, srcIndex);        uint xr = BytesTo32bits(src, srcIndex + 4);        xl ^= P[ROUNDS + 1];        for (int i = ROUNDS; i > 0; i -= 2)        {            xr ^= F(xl) ^ P[i];            xl ^= F(xr) ^ P[i - 1];        }        xr ^= P[0];        Bits32ToBytes(xr, dst, dstIndex);        Bits32ToBytes(xl, dst, dstIndex + 4);    }   And in c# I first do decryptBlock and then XOR and everything works, I get the package     This only works for the login server for the game server, I think it’s not much different
    • Ask him what you know, and what I know hahaha.
    • https://prnt.sc/2G_hOHfUIGLM   not sure what you mean Teddy boi  
    • Hello first of all thank you for your prompt response and the time you are taking to read this and answer, I am aware that not everyone takes the time and for that I thank you. On the other hand the specific problem is when decrypting this package and being able to parse it,  In some places it says that it is only encrypted with xor, in others that only a static blowfish is used and in others that both are used in the order of xor and then blowfish, this is the problem in spite of being able to see the encryption mechanisms of the servers, I can not put together the function that reverses this encryption to obtain the keys sent by the init packet.   Thanks for your time, hopefully the rest can contribute something because it is a super useful module to extend any functionality to the client and I will publish it in an opensource way when it is finished.
  • Topics

×
×
  • Create New...