Jump to content

Chocolate570

Members
  • Posts

    1,550
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Chocolate570

  1. Are the admins of w3 schools and this site ever on? I have never seen them. I have so many ideas for this forum!
  2. Not only that, next to the ad reply button there's a button called options. Click it. It'll come up with table, inside will be a link that says 'Track this Topic'.
  3. Put the link in a quote.
  4. Here's the script, what i need is it to fade from normal to light pink to normal. You'll understand what i mean when you see it. <div id="tickertape"><div id="subtickertape" class="subtickertapefont">Initializing...</div></div><script language="JavaScript1.2">/************************************************ Fading Ticker Tape Script- © Dynamic Drive (www.dynamicdrive.com)* This notice must stay intact for use* Visit [url="http://www.dynamicdrive.com/"]http://www.dynamicdrive.com/[/url] for full source code***********************************************///default speed is 4.5 seconds, Change that as desiredvar speed=4500var news=new Array()news[0]="<a href='http://www.dynamicdrive.com'>Click here to go to Dynamic Drive's front page</a>"news[1]="<a href='http://www.javascriptkit.com'>Visit JavaScript Kit for free JavaScripts!</a>"news[2]="<a href='http://freewarejava.com'>Looking for free java applets? Click here.</a>"//expand or shorten this list of messages as desiredvar fadescheme=0 //set 0 to fade bgcolor from (white to black), 1 for (black to white)var hex=(fadescheme==0)? 255 : 0var startcolor=(fadescheme==0)? "rgb(255,255,255)" : "rgb(0,0,0)"var endcolor=(fadescheme==0)? "rgb(0,0,0)" : "rgb(255,255,255)"var frame=20;var ie=document.allvar ns6=document.getElementByIdvar ns4=document.layersi=0tickerobject=ie? subtickertape: ns6? document.getElementById("subtickertape") : document.tickertape.documentfunction regenerate(){window.location.reload()}function regenerate2(){if (document.layers)setTimeout("window.onresize=regenerate",450)}function bgcolorfade() { // 20 frames fading processif(frame>0) { hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadeschemetickerobject.style.backgroundColor="rgb("+hex+","+hex+","+hex+")"; // Set color value.frame--;setTimeout("bgcolorfade()",20); }else{tickerobject.style.backgroundColor=endcolor;frame=20;hex=(fadescheme==0)? 255 : 0} }function updatecontent(){if (ie||ns6)bgcolorfade()if (ns4){tickerobject.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>')tickerobject.subtickertape.document.close()}else tickerobject.innerHTML=news[i]if (i<news.length-1)i++elsei=0setTimeout("updatecontent()",speed)}</script> Here is a url to where i got the script:http://www.dynamicdrive.com/dynamicindex2/tickertape.htm
  5. You can't, you pretend it doesn't exist. Unless you're actually talking about another site or something....
  6. Here you go.http://www.faqts.com/knowledge_base/view.p...id/32569/fid/53Side note---google is the answer to all problems.
  7. No problem, and don't hesitate to ask if you still need help.
  8. Post in the javascript section, please. More javascript guru's will look there.
  9. Chocolate570

    help

    Click this: http://www.dynamicdrive.com/dynamicindex7/index.html
  10. http://www.w3schools.com/js/tryit.asp?file...table_insertrowhttp://www.w3schools.com/js/tryit.asp?file...erow_insertcell
  11. Chocolate570

    CSS

    First of all, it would be nice if you had a link or a screenshot, it would help us understand the problem better. And secondly, you want the menu to the right to change the main page?
  12. Ya, make a <div> around the form, and set the div id too 'divthing'. Now, in the head section, make a javascript function that will look like this: <script type="text/javascript">function checkthing(){document.getElementById('divthing').style="visibility:hidden;"}</script> Then, when you want to hide the form, just call that funciton.
  13. So what do you want it to do when someone clicks on a link?
  14. Do you wanna do this with java or javascript, they're as different as broccoli and ice cream...
  15. <{POST_SNAPBACK}> What is the node thing? What are parent nodes? Do i need to open a new topic about this? Does anyone have a link to a tut on them? I'm so confused!
  16. No problem, don't hesitate to ask with the function writing. Or if you pm me what you want, i'll try to make it for you.
  17. Ya, there are different meanings. Use this:<input type="button" value="Change" onclick="window.location="hello.jsp">
  18. Ok, anywhere in the body section, insert this.<form><input type="hidden" id="companyname" value=""><input type="hidden" id="jobtitle" value=""><input type="hidden" id="jobreference" value=""><input type="hidden" id="salary" value=""><input type="hidden" id="skill" value=""></form>Ok. you've got that. Now, it would be nice to know how they will be keying in the stuff.For example.<form><table><tr><td>Company Name:</td><td><input type="text" value="" id="cname"></td></tr><tr><td>Job Title:</td><td><input type="text" value="" id="cname"></td></tr><tr><td>Job Reference?:</td><td><input type="text" value="" id="jobref"></td></tr><tr><td>Salary:</td><td><input type="number" value="" id="cname"></td></tr><tr><td>Skill:</td><td><input type="text" value="" id="cname"></td></tr></table><input type="button" value="Submit" onclick="submitthing()"></form>Then you write a javascript function with for loops through all of these, chekcs if they are filled out, and then puts their values into the hidden boxes. Then you can do whatever you want with them on the page.
  19. I've done it with vbasic, but never with javascript. :ph34r:Maybe you could use the same concept as creatign a table row with an outside function.
  20. Do you want to display it on the same page? That's possible.
  21. Note----creating a script to change those browser settings would be considered hacking or creating a virus. Just a heads up.
  22. So sorry, i fixed that. Thanks for teaching me a new bbcode thing, too. That worked perfectly! Thanks so much! :)All i needed was for the code to work in firefox.
  23. <div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;"> <img src="bullet.gif" height=11 width=11></div><div id="dot1" style="position: absolute; height: 11; width: 11;"> <img src="bullet.gif" height=11 width=11></div><div id="dot2" style="position: absolute; height: 11; width: 11;"> <img src="bullet.gif" height=11 width=11></div><div id="dot3" style="position: absolute; height: 11; width: 11;"> <img src="bullet.gif" height=11 width=11></div><div id="dot4" style="position: absolute; height: 11; width: 11;"> <img src="bullet.gif" height=11 width=11></div><div id="dot5" style="position: absolute; height: 11; width: 11;"> <img src="bullet.gif" height=11 width=11></div><div id="dot6" style="position: absolute; height: 11; width: 11;"> <img src="bullet.gif" height=11 width=11></div><script LANGUAGE="JavaScript"><!-- hide code/*Elastic Trail script (By Philip Winston @ pwinston@yahoo.com, URL: [url="http://www.geocities.com/pwinston/)"]http://www.geocities.com/pwinston/)[/url]Script featured on Dynamicdrive.comFor this and 100's more DHTML scripts, visit [url="http://dynamicdrive.com"]http://dynamicdrive.com[/url]*/var nDots = 7;var Xpos = 0;var Ypos = 0; // fixed time step, no relation to real timevar DELTAT = .01; // size of one spring in pixelsvar SEGLEN = 10; // spring constant, stiffness of springsvar SPRINGK = 10; // all the physics is bogus, just picked stuff to // make it look okayvar MASS = 1;// Positive XGRAVITY pulls right, negative pulls left// Positive YGRAVITY pulls down, negative upvar XGRAVITY = 0;var YGRAVITY = 50;// RESISTANCE determines a slowing force proportional to velocityvar RESISTANCE = 10; // stopping criterea to prevent endless jittering // doesn't work when sitting on bottom since floor // doesn't push back so acceleration always as big // as gravityvar STOPVEL = 0.1;var STOPACC = 0.1;var DOTSIZE = 11; // BOUNCE is percent of velocity retained when // bouncing off a wallvar BOUNCE = 0.75;var isNetscape = navigator.appName=="Netscape"; // always on for now, could be played with to // let dots fall to botton, get thrown, etc.var followmouse = true;var dots = new Array();init();function init(){ var i = 0; for (i = 0; i < nDots; i++) { dots[i] = new dot(i); } if (!isNetscape) { // I only know how to read the locations of the // <LI> items in IE //skip this for now // setInitPositions(dots) } // set their positions for (i = 0; i < nDots; i++) { dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; } if (isNetscape) { // start right away since they are positioned // at 0, 0 startanimate(); } else { // let dots sit there for a few seconds // since they're hiding on the real bullets setTimeout("startanimate()", 1000); }}function dot(i) { this.X = Xpos; this.Y = Ypos; this.dx = 0; this.dy = 0; if (isNetscape) { this.obj = eval("document.dot" + i); } else { this.obj = eval("dot" + i + ".style"); }}function startanimate() { setInterval("animate()", 20);}// This is to line up the bullets with actual LI tags on the page// Had to add -DOTSIZE to X and 2*DOTSIZE to Y for IE 5, not sure why// Still doesn't work greatfunction setInitPositions(dots){ // initialize dot positions to be on top // of the bullets in the <ul> var startloc = document.all.tags("LI"); var i = 0; for (i = 0; i < startloc.length && i < (nDots - 1); i++) { dots[i+1].X = startloc[i].offsetLeft startloc[i].offsetParent.offsetLeft - DOTSIZE; dots[i+1].Y = startloc[i].offsetTop + startloc[i].offsetParent.offsetTop + 2*DOTSIZE; } // put 0th dot above 1st (it is hidden) dots[0].X = dots[1].X; dots[0].Y = dots[1].Y - SEGLEN;}// just save mouse position for animate() to usefunction MoveHandler(e){ Xpos = e.pageX; Ypos = e.pageY; return true;}// just save mouse position for animate() to usefunction MoveHandlerIE() { Xpos = window.event.x + document.body.scrollLeft; Ypos = window.event.y + document.body.scrollTop; }if (isNetscape) { document.captureEvents(Event.MOUSEMOVE); document.onMouseMove = MoveHandler;} else { document.onmousemove = MoveHandlerIE;}function vec(X, Y){ this.X = X; this.Y = Y;}// adds force in X and Y to spring for dot[i] on dot[j]function springForce(i, j, spring){ var dx = (dots[i].X - dots[j].X); var dy = (dots[i].Y - dots[j].Y); var len = Math.sqrt(dx*dx + dy*dy); if (len > SEGLEN) { var springF = SPRINGK * (len - SEGLEN); spring.X += (dx / len) * springF; spring.Y += (dy / len) * springF; }}function animate() { // dots[0] follows the mouse, // though no dot is drawn there var start = 0; if (followmouse) { dots[0].X = Xpos; dots[0].Y = Ypos; start = 1; } for (i = start; i < nDots; i++ ) { var spring = new vec(0, 0); if (i > 0) { springForce(i-1, i, spring); } if (i < (nDots - 1)) { springForce(i+1, i, spring); } // air resisitance/friction var resist = new vec(-dots[i].dx * RESISTANCE, -dots[i].dy * RESISTANCE); // compute new accel, including gravity var accel = new vec((spring.X + resist.X)/MASS + XGRAVITY, (spring.Y + resist.Y)/ MASS + YGRAVITY); // compute new velocity dots[i].dx += (DELTAT * accel.X); dots[i].dy += (DELTAT * accel.Y); // stop dead so it doesn't jitter when nearly still if (Math.abs(dots[i].dx) < STOPVEL && Math.abs(dots[i].dy) < STOPVEL && Math.abs(accel.X) < STOPACC && Math.abs(accel.Y) < STOPACC) { dots[i].dx = 0; dots[i].dy = 0; } // move to new position dots[i].X += dots[i].dx; dots[i].Y += dots[i].dy; // get size of window var height, width; if (isNetscape) { height = window.innerHeight + window.pageYOffset; width = window.innerWidth + window.pageXOffset; } else { height = document.body.clientHeight + document.body.scrollTop; width = document.body.clientWidth + document.body.scrollLeft; } // bounce off 3 walls (leave ceiling open) if (dots[i].Y >= height - DOTSIZE - 1) { if (dots[i].dy > 0) { dots[i].dy = BOUNCE * -dots[i].dy; } dots[i].Y = height - DOTSIZE - 1; } if (dots[i].X >= width - DOTSIZE) { if (dots[i].dx > 0) { dots[i].dx = BOUNCE * -dots[i].dx; } dots[i].X = width - DOTSIZE - 1; } if (dots[i].X < 0) { if (dots[i].dx < 0) { dots[i].dx = BOUNCE * -dots[i].dx; } dots[i].X = 0; } // move img to new position dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; }}// end code hiding --></script> I got it off dynamic drive. I dunno if this is legal or not, but....if you can....
  24. When you're writing what's in the table tag, insert:<a href="http://linkhere">Link Text</a>
×
×
  • Create New...