Jump to content

HighCaliber

Members
  • Posts

    44
  • Joined

  • Last visited

Posts posted by HighCaliber

  1. I am creating my own game script and I would like to sort my MySQL results for my all games page into two columns. I would like it to show the first half of the entries in column 1 and the second half in column 2.For example...

    <table><tr><td>Entry 1</td><td>Entry 4</td></tr><tr><td>Entry 2</td><td>Entry 5</td></tr><tr><td>Entry 3</td><td>Entry 6</td></tr></table>

    Does anyone know how to make it sort entries this way?

  2. Does anyone know how to make a browser friendly css tooltip? I have the following but it is not working in IE.

    	a.tooltip		{		position:relative;		z-index:24;		}	a.tooltip:hover		{		z-index:25;		}	a.tooltip span		{		display: none;		}	a.tooltip:hover span		{		background: transparent url('Themes/Default/Images/tooltip.gif') left center no-repeat;		border: 0px;		bottom: -5px;		color: black;		display: block;		height: 54px;		padding: 3px 3px 3px 15px;		position: absolute;		right: -222px;		text-align: center;		width: 202px;		}

  3. I am trying to create a toggle function for my forum.Here is my javasript code...

    <script type="JavaScript">function toggle(obj1, obj2) {	var el = document.getElementById(obj1);	var el2 = document.getElementById(obj2);	if ( el.style.display != 'none' ) {		el.style.display = 'none';		el2.src = "Themes/Default/Images/category_expand.png";	}	else {		el.style.display = '';		el2.src = "Themes/Default/Images/category_shrink.png";	}}</script>

    and here is what i am trying to toggle...

    <a href="java script:toggle(1, si1)"><img alt="" border="0" src="Themes/Default/Images/category_shrink.png" id="si1" /></a><table cellspacing="1" class="Section_Middle" id="1"><tr><td>content to toggle</td></tr></table>

    For some reason this will not work, when i go to validate it it says el2 has no properties. Can anyone figure how to fix this or show me a valid (W3C Standards) way to toggle two objects.

  4. Good luck, I am currently coding one myself, so far i have it to where you can view and post topics and replies and i have a word filter and support for bbc code. It takes time and patience. I am new to php but i have found a lot of help throught tutorials and asking questions on forums. The biggest challenge for me is going to be the user system.

  5. Instead of a ranksystem, I would like to see, in the profile, a list of which areas you are good at. Of course, it would have to be selfproclaimed, but it would help a bit as for who you would want to ask for help on what area. As long as people are honest and don't brag, it would be a cool system.

    There could be some kind of test that you take to qualify as good in certain areas. It would have to have a time limit or something to prevent cheating. That would at least help a little as to preventing bragging.Chris
  6. I think this is what you want...CSS

    html, body {background: black url(blah/blah.jpg)font-family: arial, helvetica, sans-serif;height: 100%;margin: 0px;padding:0px;width: 100%;}#header {background: #fff url(untitled.bmp);color: red;height: 200px;padding: 0;text-align: center;width: 100%;}

    HTML

    <html><head><title>HTML Editor</title><link href="style.css" rel="stylesheet" type="text/css" /></head><body><div id="header"></div></body></html>

    If you need to know more let me know.Chris

  7. Here you go.

    <script type="text/javascript"><!--function Alert_k(){    if (window.event.keyCode == 107)       {alert('Hello World')};}//--></script>

    Place this in your body:

    <body onKeyPress="Alert_k()">

    Key Codes

    09  = Tab      11 = Home  13 = Enter32  = Space Bar  33  =   !  34  =   "35  =   #      36  =   $     37  =   %38  =   &      39  =   '      40  =   (41  =   )      42  =   *      43  =   +44  =   ,      45  =   -       46  =   .47  =   /      48  =   0      49  =   150  =   2      51  =   3      52  =   453  =   5      54  =   6      55  =   756  =   8      57  =   9      58  =   :59  =  ;      60  =   <      61  =   =62  =   >      63  =   ?      64  =   @65  =   A      66  =   B      67  =   C68  =   D      69  =   E      70  =   F71  =   G      72  =   H      73  =   I74  =   J      75  =   K       76  =   L77  =   M      78  =   N      79  =   O80  =   P      81  =   Q      82  =   R83  =   S      84  =   T      85  =   U86  =   V      87  =   W     88  =   X89  =   Y      90  =   Z      91  =   [92  =   \      93  =   ]       94  =   ^95  =   -      96  =   `       97  =   a98  =   b      99  =   c      100  =   d101  =   e     102  =   f      103  =   g104  =   h     105  =   i      106  =   j107  =   k     108  =   l      109  =   m110  =   n     111  =   o      112  =   p113  =   q     114  =   r      115  =   s116  =   t      117  =   u      118  =   v119  =   w     120  =   x      121  =   y122  =   z      123  =   {      124  =   |125  =   }      126  =   ~  

    Chris

  8. All it takes is 30 posts. But as he mentioned its value is very debatable considering someone with 30 posts has the same ranking as someone with 500....not to mention, most people (including me) do not feel that a member's value lies only in the number of posts, but in the value of each post.In some cases, rankings like these promote post wars, where people begin posting comments that are not helpful to the community but are only made to increase their count. Luckily we have been able to avoid that for the most part here.

    I agree, I was just wondering and nothing else was going on in the forums.Chris
  9. This is what I found...Put this in your head...

    <script LANGUAGE="JavaScript"><!--/*  Author's Name:        Andy Augustine    JavaScript Snippet:   'mailIt'    E-mail address:       jspro@inquiry.com    Original Location:    [url="http://www.inquiry.com/techtips/js_pro/"]http://www.inquiry.com/techtips/js_pro/[/url]        Permission granted to freely distribute and use this        code as long as this header remains in tact.                   ©1996 Andy Augustine                            */        function mailIt(form) {  var data = document.dataForm  var userInfo = ""  // comment out the next line if you want to hardcode the reciepient  // then add 'foo@bar.com' to the 'mailform' action attribute  // (i.e. -- ACTION="mailto:foo@bar.com")  form.action += data.recipient.value    // comment out the next line if you want to hardcode the subject  // then add '?subject=example' to the 'mailform' action attribute.  // You must hardcode an address before you can hardcode a subject.  // (i.e. -- ACTION="mailto:foo@bar.com?subject=example")  form.action += "?subject=" + data.subject.value  userInfo += "Page Title:  " + document.title + "\n"  userInfo += "Mailed From: " + document.location + "\n\n"  form.mailBody.value = userInfo + data.body.value  return true}// --></SCRIPT>

    Put this in the body...

    <form name="dataForm">Recipient:<input name="recipient" size="40" value="numberone@web-nation.com"><br/>Subject:<input name="subject" size=40><br/>Message:<textarea name="body" cols="40" rows="10" WRAP=virtual></textarea></form><form name="mailForm" action="mailto:" method="post" enctype="multipart/form-data" onSubmit="return mailIt(this)"><input type="hidden" name="mailBody" value=""><input type="submit" value="Send This Mail Message Now"></form>

    Matt

×
×
  • Create New...