Jump to content

pulpfiction

Members
  • Posts

    1,210
  • Joined

  • Last visited

Posts posted by pulpfiction

  1. One thing to point out is, there can be multiple ELSEIF in a IF block but there can be only one ELSE. IF (expression) statements ELSEIF (expression) statements ELSEIF (expression) statements . .ENDIFBut if you start a IF the you need to end it.IF (expression) statementsELSE IF (expression) Statements END IFEND IF

  2. That maybe true...I enjoyed making templates before I became a web developer for a job. Now after 9+ hours of coding I don't feel much like doing it for fun :)
    Yeah thats so true. back when i was in college, used to sit in front of computer at home for hours, but now i rarely use it.
    I wish I had time to be bored. As the only full-time programmer and a half dozen projects on the go at any given time (websites, custom apps, etc) some days it's hard to keep up.
    Its pretty much the same situation im in [involved in 4 project], but i dont have time as factor, but switching between projects, asp.net to classic asp to vb, sometimes drives me crazy....
  3. Click inside the textbox and then the button will look like a 1px border.. guess the reason is, if you take a normal submit button, you can see it highlighted. so because of this highlight the 1px border looks like 3px and when you click in the textbox the button is not highlighted so its like you want it.

  4. I'm so bored at work this week. I do nothing! Anyone has something to recommend I should do to get even better at xhtml and css? I'm already at the expert level.
    Design website templates... that what I do when there is not much work to do. improves creativity, coding mostly in XHTML, CSS. and finally post it in some open source template design site.
  5. Thanks.. This looks very helpful. I'll try it out today.I should just make sure this is right first. LOL! The HTML goes in the body of my page where I want it to appear?The CSS goes in my .css file?The Java part goes between the head tags on my webpage?Right??
    Yes, thats correct... <html><head><style type="text/css">CSS STYLE INLINE</style><script type="text/javascript">JAVASCRIPT INLINE </script></head><body>YOUR HTML PART</body></html>OR you can have a seperate file .css for CSS and .js for JavaScript and link it to your HTML page
  6. not realy, lets say, the style sheet has.MyClass { fontsize:24px; }and after the page loads, this,(some javascript method).MyClass.Style.fontsize="30px";thanks
    You are looking for javascript to modify the CSS Class. Something like, after modifying the css class, when you use it again, the font size must be 30px and not 24px. hope this is what you are looking for...This is not the exact solution, but might help http://www.quirksmode.org/dom/w3c_css.html#style
  7. This should work fine... In the HTML part, change menuOver(e) to menuOver(event). In this code Intiially "botChem" and "botMin" are hidden and when you move the mouse over "topChem" or "topMin" then they will appear and will be hidden when mouse out of link....

    function menuOver(e){	e = (e) ? e : window.event;	var source = (e.target) ? e.target : e.srcElement;	if (source.id=="topChem") {		document.getElementById("botChem").style.visibility = "visible";	}	else if (source.id=="topMin") {		document.getElementById("botMin").style.visibility = "visible";	}}function menuOut(e){	e = (e) ? e : window.event;	var source = (e.target) ? e.target : e.srcElement;	if (source.id=="topChem") {		document.getElementById("botChem").style.visibility = "hidden";	}	else if (source.id=="topMin") {		document.getElementById("botMin").style.visibility = "hidden";	}}

    HTML

    <body><p><a id="topChem" href="#" onMouseOut="menuOut(event)" onMouseOver="menuOver(event)">topChem</a><a id="topMin" href="#" onMouseOut="menuOut(event)" onMouseOver="menuOver(event)">topMin</a></p><p><a href="#" id="botChem" style="visibility:hidden;">botChem</a> <a href="#" id="botMin" style="visibility:hidden;">botMin</a></p</body>

  8. Rather than using JavaScript you can use simple HTML to take the page to top...

    <body><span name="top">Hi</span><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><a href="#top"><img src="imgname.gif"></a></body>

    If you are looking for something like this, then important part of code are ......name="top"> Whatever name you give on the top use it in the bottom href with #.. <a href="#top">

  9. Try this...

    <html><head><script type="text/javascript">function change(imgsrc) {frames['testiframe'].location.href = imgsrc}</script></head><body>  <div id="container"><H3 style="left: 20px; text-align: left"> Photographs </H3><div class="small"><ul class="none"><li><a href="java script:change('imgname1.jpg');">PA</a></li><li><a href="java script:change('imgname2.jpg');">St</a></li><li><a href="java script:change('imgname3.jpg');">HMB</a></li><li><a href="java script:change('imgname4.jpg');">SC</a></li><li><a href="java script:change('imgname5.jpg');">SF</a></li></ul></div><div class="inlineframe"><iframe id="testiframe" name="testiframe" src="someimg.gif"></iframe></div></div></body></html>

×
×
  • Create New...