drac
Student
Posts: 32
|
Post by drac on Jun 26, 2007 16:13:17 GMT -5
How do i insert an image into the Main header?
|
|
|
Post by ballackfanatka on Jun 26, 2007 16:47:48 GMT -5
on the proboards? or in html? .... on the proboards just add the url of the image where it sais logo... and on html u need a code...
|
|
|
Post by Jordan on Jun 26, 2007 17:04:16 GMT -5
<script type="text/javascript"> var ImgLink = "";//Url to image
this.onload = function() { var Div = document.createElement( "div" ); var Center = document.createElement( "center" ); var Image = document.createElement( "img" ); Image.src = ImgLink; Image.border = 0; Div.appendChild( Image ) Center.appendChild( Div ) document.body.appendChild( Center ); } </script>
Main, or global headers.
|
|
drac
Student
Posts: 32
|
Post by drac on Jun 27, 2007 10:38:55 GMT -5
thanks
|
|
|
Post by Andrew on Jun 27, 2007 13:58:49 GMT -5
Does not have to be so complicated. You dont need to use Javascript for a simple image in the headers.
<img src="IMAGE URL HERE"</a>
|
|
drac
Student
Posts: 32
|
Post by drac on Jun 27, 2007 14:56:15 GMT -5
thats better thanks
|
|
|
Post by Andrew on Jun 27, 2007 14:56:50 GMT -5
Lol your welcome
|
|
|
Post by Jordan on Jun 27, 2007 15:52:07 GMT -5
Depends. The one that I gave him centers the image and loads faster.
|
|
|
Post by Andrew on Jun 28, 2007 0:35:03 GMT -5
Depends. The one that I gave him centers the image and loads faster. <center><img src="IMAGE URL HERE"</a></center> Still IMO you dont need all that JS to use a image. Its not gonna take long to load anyway. HTML for simple things...
|
|
drac
Student
Posts: 32
|
Post by drac on Jun 28, 2007 8:31:51 GMT -5
tried tehm both, speed is no differance. Single line code is easier on the eyes though
|
|
|
Post by Andrew on Jun 28, 2007 9:13:27 GMT -5
Yep no point in javascript for a image. Glad your happy with your code. Shout back if you need any more help.
|
|
drac
Student
Posts: 32
|
Post by drac on Jul 16, 2007 20:03:09 GMT -5
hey °l||l° Meep °l||l°
If you are still watching this thread, Can your earlier response be modified so it would randomly pick a picture out of a list of say 20 pics?
|
|