Jump to content


  • Posts

  • Joined

  • Last visited

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location
    Austin Texas USA
  • Interests
    Web Development

anothen's Achievements


Newbie (1/7)



  1. I figured it out, it was 2 problems: I forgot to disable cache the style="width: 200px; in the span works fine
  2. Here is the code from w3: <style> .tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; } .tooltip .tooltiptext { visibility: hidden; width: 500px; background-color: black; color: #fff; text-align: left; border-radius: 6px; padding: 5px 0; /* Position the tooltip */ position: absolute; z-index: 1; top: -5px; left: 0%; } .tooltip:hover .tooltiptext { visibility: visible; } </style> Here it is inside body: <div class="tooltip"> text text text <span class="tooltiptext"> <!-- <span class="tooltiptext" width: 800px;> did not work --> <!-- <style="width; 800px"> tooltip text </style> did not work --> tooltip text </span> </div> I need to set a specific width for each tooltip. I have tried several ways: " . style="width: 800px /. " but it did not work
  3. In some forum engines, they have the capabilityof placing tags in a textarea and placing the cursorin between.I began writing some code that would simplifymany of my repetitive keystrokes.Yes, I know that there are many free codegenerating programs out there, and I haveone, however, I'm still learning and I've learnedthat the best way to learn code is to hard codeit yourself.This is what I've done so far: <head><title>js getcode</title><!-- javascript here --><script type="text/javascript">function getcode(){f=document.codeform; switch(f.whichcode.value) { case "1": f.result.value = f.result.value + "<html><head>\n</head><body>\n\n\n</body></html>"; f.whichcode.value = ""; break; case "2": f.result.value = f.result.value + "<table><tr><td>\n\n\n</td></tr></table>"; f.whichcode.value = ""; break; case "3": f.result.value = f.result.value + "if(condition){}"; f.whichcode.value = ""; break; case "4": f.result.value = f.result.value + "switch(n){case 1 code break; case 2 code break;}"; f.whichcode.value = ""; break; case "5": f.result.value = f.result.value + "<?php $_SERVER[php_SELF]; ?>"; f.whichcode.value = ""; break; case "6": document.getElementById("theresult").select(); f.whichcode.value = ""; break; };}</script></head><BODY onLoad="document.codeform.result.focus()" ><a href="js_code.html">return</a><br><form NAME="codeform" method="post" ACTION="<?php $_SERVER[php_SELF]; ?>"><table><tr><td><textarea id="theresult" rows="15" cols="75" NAME="result"></textarea></td></tr><tr><td><select NAME="whichcode" onchange="document.codeform.result.focus(); getcode()"><option value=""></option><option value="1">html doc</option><option value="2">table</option><option value="3">if/then</option><option value="4">switch</option><option value="5"><?php $_SERVER[php_SELF]; ?></option><option value="6">select all</option></select></td></tr></table></form></body> However, I still can't seem to figure out how toplace the cursor in between tags.
  4. Solved,I was using javascript and forgot to use ... \" ...when defining in a document.write()
  5. Is there a way I can define individual Table elements?<head><style type="text/css">#tclass{border-collapse:collapse;}#drkbkgn{background-color:black;}</style></head><body><table class="tclass"><tr><td>one</td><td>two</td><td class="drkbkgn">three</td></tr></table></body>All I wanted to do was black out only certain "td"'s
  • Create New...