Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Shinji

  1. Hey im wondering how i can have a bunch of random backgrounds for a webpage. Here is what i have so far, and for me its not workin.for the meantime im just trying to get it to work so i have one image called bg1.png and i figure i just need to get the random number deal working and them make more backgrounds <script type="text/javascript"><!--document.write('<body background="bg' + Math.floor(Math.random()*1) + '.png">');--></script> anyone help?
  2. Hello, I am using the float attribute at the website i'm working on (Herofox.net). For some reason the background goes away on those divs. Maybe you can take a look at my code and see..blocks {float: left;padding: 5px;margin: 13px;width: 140px;height: 250px;background: #e5e5e5;color:#4e4e4e;} That is the code for the blocks themselves.And this is the code for the entire container. .content {margin: 0px auto;padding: 8px;text-align: left;background: #f1f1f1;color: #4e4e4e;width: 880px;} Any help is appreciated thanks very much.
  3. Cool! I thank you for the response as well as the awesome tip. I will try again with this and see if i can get a hold of it.-edit-Thanks again! I was able to do it with the script you gave me!
  4. Hello, and thanks for looking! I am getting better at javascript and want to use it to animate multiple images. I looked at your animation tutorial and saw that really it would be dumb to create the functions over and over again (cuz that would kinda defeat the purpose of a function), so I attempted to create my own with arguments, although I do not have a good grasp on this. Please review what I came up with: <script type="text/javascript">function mouseOver(name,src_over){document.(name).src = "(scr_over)"}function mouseOut(name,src_out){document.(name).src = "(src_out)"}</script> This is my JS, and I really am pretty sure I didn't do the arguments right, but I figured the two that would be needed are the name of the image element as well as the new src.Later on I have something like this: <a href="index.php"><img src="images/home.gif" width="75" height="30" border="0" alt="Home" name="img1" onmouseOver="mouseOver('img1','images/home-over.gif')" onmouseOut="mouseOut('img1','images/home.gif')" /></a> If I am way off can someone please post new code or critique mine?Thanks!
  5. Well, i know i didnt follow up on this one, mainly because i had found the problem...
  6. Hello, W3Schools. I am a new css convert from tables, and I get most of it. But, I do have a problem when i want to put images on either side of some text. I am wondering how you can have, say, a 300px wide image, some text with a wrap at 500px, and the same 300px image on the right side. Is this possible with css divs?Thanks for any help, Shinji
  7. you could also use the z-index attribute in csshttp://w3schools.com/css/tryit.asp?filename=trycss_zindex2
  8. maybe the creators of flash didnt want people linking to other sites and "stealing" (not really in your case) their flash
  9. Shinji

    Form Submit

    Thanks! You guys really are geniouses i must say.
  10. Shinji

    Form Submit

    Is it possible to use your own image as the submit button? If so, how can you do it? Thanks
  11. Hey guys and gals I know that there are other posts about this topic but I can't seem to find my problem! Here's my code. Any help or critism is awesome. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head> <link rel="stylesheet" type="text/css" href="style1.css" /><script type="text/javascript"><!--function mouseOver(){document.b1.src ="images\nav-home-over.jpg"}function mouseOut(){document.b1.src ="images\nav-home-up.jpg"}//--></script></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="500"> <tr> <td class="nav" width="100" height="45"> <img alt="main" src="images\nav-main.jpg" border="0"/> </td> </tr> <tr> <td class="nav" width="100" height="20"> <a href="home.html" onmouseover="mouseOver()" onmouseout="mouseOut()"> <img alt="home" src="images\nav-home-up.jpg" name="b1" border="0" /> </a> </td> </tr> <tr> <td class="nav" width="100" height="20"> <a href="updates.html"><img alt="updates" src="images\nav-updates-up.jpg" border="0"/></a> </td> </tr> <tr> <td class="nav" width="100" height="20"> <a href="wownews.html"><img alt="news" src="images\nav-news-up.jpg" border="0"/></a> </td> </tr> <tr> <td class="nav" width="100" height="20"> <a href="forums.html"><img alt="forums" src="images\nav-forums-up.jpg" border="0"/></a> </td> </tr></table></td></tr></table></body></html> I figured the CSS sheet was unimportant here so i didn't post it.
  12. Here is what I use for pup-ups when im doing in-game screenshots or something like that: <html><head><script type="text/javascript"><!--function popup(mylink, windowname){if (! window.focus)return true;var href;if (typeof(mylink) == 'string') href=mylink;else href=mylink.href;window.open(href, windowname, 'width=800,height=600,scrollbars=no');return false;}//--></script></head><body><!-- Here are two different popups using the same function --><a href="testpopup.html" onClick="return popup(this, 'hello')">my popup</a><br /><br /><a href="anothertest.html" onClick="return popup(this, 'diditwork')">another</a></body></html> Ok so thats the page that has the links to the popups. Now we can make pages for the popups! The only thing you need to remember is that you need to focus the window or people will not know where it is!Here could be a sample page: <html><head><script TYPE="text/javascript"><!--window.focus();//--></SCRIPT></head><body>hello</body></html> Sorry if that doesnt help but i hope it does.
  13. Very cool! Thanks for not only the speedy reply but a good one too!
  14. Well, here's my issue. I've got this section of my site where i have some links and its a CSS <div>. <div class="links"><a href="#">Link</a><br /><a href="#">Another</a><br /><a href="#">Another</a></div> And here is the css i have for that div .links {background : url('img\bg.jpg') repeat-x; Is there some way that i can make a different image using javascript or CSS when my mouse hovers over the section? Any help appreciated. Thanks.
  15. Well, ive got a couple of questions for you geniouses :)First off, is it possible to use CSS to change a submit button on a form? <input type="submit" value="Submit"> Next, can you use tables in forms to make it so that each text box entry starts and ends at the same place? Code is nice but i just need a yes or no answer.Thanks guys.
  16. Alls i do is make a link to the image as i did here:Republic Alliance
  17. Yeah, gifs are fun. You can do a lot with them. Here are some that i have made:
  18. Shinji

    Page Layout

    Thanks guys this helps a lot!
  19. Shinji

    Page Layout

    Hello. I am wondering if there is anyway to make really nice layout (using tables) ona page. Mainly what im referring to is the border style, size, color, and if i can use my own border i make (is that possible?). Any help would be appreciated, and i can do stuff in CSS and HTML if that helps. You could just use this if you really need some kind of code. <html><body><table><tr><td>Something</td><td>Another Something</td></tr><tr><td>Anything</td><td>Some text</td></tr></table></body></html>
  • Create New...