Jump to content

zig zag

  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About zig zag

  • Rank

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location
    United Kingdom
  1. Try this <html><head><script type="text/javascript">function dothis(){document.getElementById('action').innerHTML = 'Yes';};</script></head><body><p id="action">No.</p><button type="button" onclick="dothis()">Yes?</button></body></html> and yes there is a way to assign a random number to a variable.var randomNumber=Math.floor(Math.random()*6) // The variable "randomNumber" will equal a random number between 0-5var randomNumber=Math.floor(Math.random()*11) // The variable "randomNumber" will equal a random number between 0-10Now someone correct me if I'm wrong but remember the following...Declaring this variable inside a function will generate a new number every time you run the function.Declaring this variable outside all functions will generate a new number every time you load the page.
  2. zig zag

    Can't centre menu bar

    I managed to center it, but then ended up with a small gap in-between each individual link, which I'm not sure you want.Here's the edited CSS code anyhow. #Menu { background-color: #192653; /* added a background colour to fill in the gap */ padding:10px; /* added some padding so the background colour would spread up and down */}#Menu li { display:inline;}#Menu li a { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 20px; text-decoration: none; /* float:left; */ /* Turned off float, as it wasn't allowing me to center otherwise */ padding: 10px; background-color: #192653; color: #ffffff; border-bottom: 1px; border-bottom-color: #000000; border-bottom-style: solid; -webkit-transition-property: background; -webkit-transition-duration: 700ms; -moz-transition-property: background; -moz-transition-duration: 700ms; gradient:;}#Menu li a:hover { border-radius: 5px; background-color: #95A6BA; padding-bottom: 12px; border-bottom: 2px; border-bottom-color: #000000; border-bottom-style: solid; margin: -1px;}#navigation{ text-align: center; /* centering the overall menu */} Sorry I couldn't be more helpful.
  3. Could be a case of capital letters. Check your image file name and check it's all lower case like the path you set up "soundasapound2011s.jpg"
  4. HeyhiName: JonAge: 20Gender: MaleOccupation: StudentCountry of residence: UKSmoking/Drinking/Drugs: no/yes/noFavourite Music: ska/rock/alternativeFavourite Movies: action/adventure/comedy/dramaAdditional comments: Been slowly teaching myself how to create websites for the past 4-5 years and only now thought it was a good idea to join a relative forum.
  5. I use Komodo Edit mostly, although I do use notepad++ time to time.
  • Create New...