Jump to content

Recommended Posts

Posted

 

Ok, I have a small pop-up window that contains a PHP form to contact me from my MT weblog. My minor problem is that in Netscape, the border I have around the body gives me problems (looks bad). Of course, in Explorer, it looks fine. :) I wonder if it's the code to obfuscate the e-mail? Dunno.

 

The link to open the pop-up window is found under Links on the right-hand side under "contact me".

 

http://www.zoblue.com/mt/

 

here's the code (minus the meta tags):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>writeMe !!blue</title>

<style>

body { margin:20px 20px 20px 20px; background:#333;}

.copy {font-family:verdana, arial, sans-serif; color:#D1D3D2;

  font-size: x-small; font-weight:normal; background:#333;

    line-height:140%; border:1px solid #0A4C66;         

    padding:10px; width:400;}

table {font-family:verdana, arial, sans-serif;font-size: x-small; font-weight:normal;

  color:#D1D3D2; border:1px dotted #0A4C66;}

  input, textarea {background: #D1D3D2; color: #0A4C66;

    border: 2px solid #0A4C66; margin: 2px;

    font:normal normal small verdana, arial, sans-serif;}

A:link  { color: #A2B857; text-decoration: none; }

A:visited { color: #A2B857; text-decoration: none; }

A:active { color: #CC9933; }

A:hover  { color: #CC9933; }

</style>

</head>

 

<body>

<br>

<span class="copy"><b>writeMe !!blue</b><BR><BR>

<br>

e-mail: <script type="text/javascript">

//<![CDATA[

function hiveware_enkoder(){var i,j,x,y,x=

"x=\"783d223738336432323336333433363636333633333337333533363634333633353336" +

"36353337333433323635333733373337333233363339333733343336333533323338333233" +

"32333336333336333133323330333633383337333233363335333633363333363433353633" +

"33323332333636343336333133363339333636333337333433363636333336313336333233" +

"36363333373335333633353334333033373631333636363336333233363633333733353336" +

"33353332363533363333333636363336363433353633333233323332333033373334333633" +

"39333733343336363333363335333336343335363333323332333633383336333533373332" +

"33363335333233373337333333323330333636343337333933323330333633353336363433" +

"36333133363339333636333332333133353633333233323333363533363332333636333337" +

"33353336333533343330333736313336363633363332333636333337333533363335333236" +

"35333633333336363633363634333336333332363633363331333336353332333233323339" +

"33333632333333303333363232323362373933643237323733623636366637323238363933" +

"64333033623639336337383265366336353665363737343638336236393262336433323239" +

"37623739326233643735366536353733363336313730363532383237323532373262373832" +

"65373337353632373337343732323836393263333232393239336237643739223b793d2727" +

"3b666f7228693d303b693c782e6c656e6774683b692b3d32297b792b3d756e657363617065" +

"282725272b782e73756273747228692c3229293b7d79\";y='';for(i=0;i<x.length;i+=" +

"2){y+=unescape('%'+x.substr(i,2));}y";

while(x=eval(x));}hiveware_enkoder();

//]]>

</script> or use the form below:<BR>

<BR>

  <table width="350" cellpadding="0" cellspacing="0" border="0" bgcolor="#555555">

  <tr>

  <td colspan="2">

  <?php

  $to = "blue@zoblue.com";

  $from_header = "From: $Name <$Email>";

  if($Email != "" || $Email == "^[_\\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\\.)+[a-z]{2,3}$") {

  mail($to,"Subject","\n$Name\n$Email\n\nComments...\n$Message\n",$from_header);

  print ("<b>Your note has been sent!    Send another if you like!</b><br>");

  }

  else {

  echo "<b>Send me a note!</b><br>";

  }

  ?>

  </td>

  <form method="POST" action="<? echo ($PHP_SELF); ?>">

  <tr align="left" valign="bottom">

  <td width="100"><p>Name:</p>

  </td>

  <td><input type="text" name="Name" size="30" maxlength="30"></td>

  </tr>

  <tr align="left" valign="bottom">

  <td><p>E-mail:</p></td>

  <td><input type="text" name="Email" maxlength="30" size="30"></td>

  </tr>

  <tr align="left" valign="top">

  <td><p>Message:</p></td>

  <td><textarea name="Message" wrap rows="5" cols="30"></textarea></td>

  </tr>               

  <tr align="center" valign="top">

  <td><br>

  <input type="submit" name="submit" value="Send"><br>

  <br>

  </td>

  <td><br>

  <input type="reset" name="reset" value="Clear"><br>

  </td>

  </tr>

  </form>

  </table><BR><BR>

<table width="400" border="0" style="border: 0px" cellpadding="2" cellspacing="0" bgcolor="#333333">

<tr><td align="center"><a href="java script:window.close();"><font size="-2">[x] close window</font></a></td>

</tr>

</table>

</span>

</body>

</html>

 

thanks all,

!!blue

 

Posted

 

Ne'er mind, I fixed it! Just made another div class with the border and put that around everything between the body tags. Still don't know what was throwing it off; but Netscape & Mozilla wanted to put a border around each line of the copy instead of the whole page. :dance:

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...