XXXconanXXX
Cocktails anyone?
- Reaction score
- 279
I've been studying HTML, PHP, and Javascript for a little while, learning the terminology and the formats of them, but I recently just started creating a webpage. My question is, does the format of the text and the positions of them in the script determine where they are to the viewer? I obviously know that if you a few lines of text, then put an image below that in the script that the image is going to be below the text. This is what I mean:
Would that be centered, as opposed to this, which would be on the right side?
What I'm asking is if I centered the script, would it be centered since it's centered in the script or do I need to do it manually? Meh, Sorry I know I could test this out myself but it's acting up with me so I can't test it, and I need to know so I can finish the script using one method or the other.
Cheers,
Conan
Code:
<SCRIPT LANGUAGE="JavaScript">
Image1= new Image(75,50)
Image1.src = "Until It Hurts1.gif"
Image2 = new Image(75,50)
Image2.src = "Until It Hurts2.gif"
function SwapOut() {
document.imageflip.src = Image2.src; return true;
}
function SwapBack() {
document.imageflip.src = Image1.src; return true;
}
</SCRIPT>
Would that be centered, as opposed to this, which would be on the right side?
Code:
<SCRIPT LANGUAGE="JavaScript">
Image1= new Image(75,50)
Image1.src = "Until It Hurts1.gif"
Image2 = new Image(75,50)
Image2.src = "Until It Hurts2.gif"
function SwapOut() {
document.imageflip.src = Image2.src; return true;
}
function SwapBack() {
document.imageflip.src = Image1.src; return true;
}
</SCRIPT>
What I'm asking is if I centered the script, would it be centered since it's centered in the script or do I need to do it manually? Meh, Sorry I know I could test this out myself but it's acting up with me so I can't test it, and I need to know so I can finish the script using one method or the other.
Cheers,
Conan


