PDA

View Full Version : I know im a n00b at html



:-Rico-
18-11-2005, 05:07 PM
Is this code look right to you??

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Never Forgotten</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<META http-equiv=imagetoolbar content=false>
<STYLE type=text/css>.fsx01 {
FONT-SIZE: 11px
}
.fsx02 {
FONT-SIZE: 12px
}
.fsx03 {
FONT-SIZE: 13px
}
.fsx04 {
FONT-SIZE: 15px
}
.fsx05 {
FONT-SIZE: 16px
}
.fsx06 {
FONT-SIZE: 19px
}
.fsx07 {
FONT-SIZE: 21px
}
.fsx08 {
FONT-SIZE: 24px
}
.fsx09 {
FONT-SIZE: 27px
}
.fsx10 {
FONT-SIZE: 29px
}
.fsx11 {
FONT-SIZE: 32px
}
.fsx12 {
FONT-SIZE: 35px
}
.fsx13 {
FONT-SIZE: 37px
}
.fsx14 {
FONT-SIZE: 48px
}
.fsx15 {
FONT-SIZE: 64px
}
.fsx16 {
FONT-SIZE: 96px
}
.txdec {
TEXT-DECORATION: none
}
.dfltt {
FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-FAMILY: Times New

Roman; TEXT-ALIGN: left; TEXT-DECORATION: none
}
BODY {
MARGIN: 0px; WIDTH: 100%; HEIGHT: 100%
}
</STYLE>
</HEAD>
<BODY vLink=#800080 aLink=#ff0000 link=#0000ff bgColor=#808080>
<DIV id=Oobj21
style="FONT-SIZE: 1px; Z-INDEX: 1; LEFT: 155px; VISIBILITY: visible;

WIDTH: 629px; POSITION: absolute; TOP: 16px; HEIGHT: 689px"><IMG
height=689 alt="" src="index_files/temp.JPG" width=629 align=top

border=0
name=Ggeo22></DIV>
<DIV id=Oobj5
style="Z-INDEX: 2; LEFT: 4px; VISIBILITY: visible; WIDTH: 931px;

POSITION: absolute; TOP: 5px; HEIGHT: 566px">
<DIV class=dfltt id=Gcode5>
<SCRIPT language=JavaScript1.2>
<!--

//1) specify path to image
var imagepath="www.rkdesigns.shield-hosting.com/header_logo.gif"

//2) specify image dimensions
var imagewidth=90
var imageheight=30

//3) change this to adjust speed (lower is slower)
var speed=5;

//4) configure what should happen when user clicks on image
//A value of "dismiss" will dismiss it, while a URL will cause the

browser to navigate to it
var imageclick="dismiss"

//5) Finally, configure when the image should automatically disappear,

in seconds (0=perpetual)
var hideafter=0

////No editing required beyond this point/////////////////

var isie=0;
if(window.navigator.appName=="Microsoft Internet

Explorer"&&window.navigator.appVersion.substring(window.navig ator.appVe

rsion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>

=5.5) {
isie=1;
}
else {
isie=0;
}

if(isie){
var preloadit=new Image()
preloadit.src=imagepath
}


function pop() {
if(isie) {
x=x+dx;y=y+dy;
oPopup.show(x, y, imagewidth, imageheight);
if(x+imagewidth+5>screen.width) dx=-dx;
if(y+imageheight+5>screen.height) dy=-dy;
if(x<0) dx=-dx;
if(y<0) dy=-dy;
startani=setTimeout("pop();",50);
}
}

function dismisspopup(){
clearTimeout(startani)
oPopup.hide()
}

function dowhat(){
if (imageclick=="dismiss")
dismisspopup()
else
window.location=imageclick
}


if(isie) {
var x=0,y=0,dx=speed,dy=speed;
var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.style.cursor="hand"
oPopupBody.innerHTML = '<IMG SRC="'+preloadit.src+'">';
oPopup.document.body.onmouseover=new

Function("clearTimeout(startani)")
oPopup.document.body.onmouseout=pop
oPopup.document.body.onclick=dowhat
pop();

if (hideafter>0)
setTimeout("dismisspopup()",hideafter*1000)
}


// -->
</SCRIPT>
</DIV></DIV><!--used for VM preview mode only -->
<META http-equiv=Expires
content=-1><!--used for VM preview mode only --></BODY></HTML>

But it doesn't show up with the background and the popup image thing :S

Help PLEASE!!!!!!!!!!!!!!!!!!!

Sam
18-11-2005, 05:19 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Never Forgotten</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<META http-equiv=imagetoolbar content=false>
<STYLE type=text/css>.fsx01 {
FONT-SIZE: 11px
}
.fsx02 {
FONT-SIZE: 12px
}
.fsx03 {
FONT-SIZE: 13px
}
.fsx04 {
FONT-SIZE: 15px
}
.fsx05 {
FONT-SIZE: 16px
}
.fsx06 {
FONT-SIZE: 19px
}
.fsx07 {
FONT-SIZE: 21px
}
.fsx08 {
FONT-SIZE: 24px
}
.fsx09 {
FONT-SIZE: 27px
}
.fsx10 {
FONT-SIZE: 29px
}
.fsx11 {
FONT-SIZE: 32px
}
.fsx12 {
FONT-SIZE: 35px
}
.fsx13 {
FONT-SIZE: 37px
}
.fsx14 {
FONT-SIZE: 48px
}
.fsx15 {
FONT-SIZE: 64px
}
.fsx16 {
FONT-SIZE: 96px
}
.txdec {
TEXT-DECORATION: none
}
.dfltt {
FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-FAMILY: Times New

Roman; TEXT-ALIGN: left; TEXT-DECORATION: none
}
BODY {
MARGIN: 0px; WIDTH: 100%; HEIGHT: 100%
}
</STYLE>
</HEAD>
<BODY vLink=#800080 aLink=#ff0000 link=#0000ff bgColor=#808080>
<DIV id=Oobj21
style="FONT-SIZE: 1px; Z-INDEX: 1; LEFT: 155px; VISIBILITY: visible;

WIDTH: 629px; POSITION: absolute; TOP: 16px; HEIGHT: 689px"><IMG
height=689 alt="" src="images/header_logo.gif" width=629 align=top

border=0
name=Ggeo22></DIV>
<DIV id=Oobj5
style="Z-INDEX: 2; LEFT: 4px; VISIBILITY: visible; WIDTH: 931px;

POSITION: absolute; TOP: 5px; HEIGHT: 566px">
<DIV class=dfltt id=Gcode5>
<SCRIPT language=JavaScript1.2>
<!--

//1) specify path to image
var imagepath="images/header_logo.gif"

//2) specify image dimensions
var imagewidth=90
var imageheight=30

//3) change this to adjust speed (lower is slower)
var speed=5;

//4) configure what should happen when user clicks on image
//A value of "dismiss" will dismiss it, while a URL will cause the

browser to navigate to it
var imageclick="dismiss"

//5) Finally, configure when the image should automatically disappear,

in seconds (0=perpetual)
var hideafter=0

////No editing required beyond this point/////////////////

var isie=0;
if(window.navigator.appName=="Microsoft Internet

Explorer"&&window.navigator.appVersion.substring(w indow.navigator.appVe

rsion.indexOf("MSIE")+5,window.navigator.appVersio n.indexOf("MSIE")+8)>

=5.5) {
isie=1;
}
else {
isie=0;
}

if(isie){
var preloadit=new Image()
preloadit.src=imagepath
}


function pop() {
if(isie) {
x=x+dx;y=y+dy;
oPopup.show(x, y, imagewidth, imageheight);
if(x+imagewidth+5>screen.width) dx=-dx;
if(y+imageheight+5>screen.height) dy=-dy;
if(x<0) dx=-dx;
if(y<0) dy=-dy;
startani=setTimeout("pop();",50);
}
}

function dismisspopup(){
clearTimeout(startani)
oPopup.hide()
}

function dowhat(){
if (imageclick=="dismiss")
dismisspopup()
else
window.location=imageclick
}


if(isie) {
var x=0,y=0,dx=speed,dy=speed;
var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.style.cursor="hand"
oPopupBody.innerHTML = '<IMG SRC="'+preloadit.src+'">';
oPopup.document.body.onmouseover=new

Function("clearTimeout(startani)")
oPopup.document.body.onmouseout=pop
oPopup.document.body.onclick=dowhat
pop();

if (hideafter>0)
setTimeout("dismisspopup()",hideafter*1000)
}


// -->
</SCRIPT>
</DIV></DIV><!--used for VM preview mode only -->
<META http-equiv=Expires
content=-1><!--used for VM preview mode only --></BODY></HTML>



There, Ive tested it n it works for me

:-Rico-
18-11-2005, 05:31 PM
Its exactly the same :( I need a way of getting the template and popup to show up

Sam
18-11-2005, 05:37 PM
:) Brb i have a plan xD

Sam
18-11-2005, 05:38 PM
Hmm double post soz

nets
18-11-2005, 05:48 PM
To make popup windows you could try:
http://javascript.internet.com/generators/popup-window.html

Want to hide these adverts? Register an account for free!