d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Html Border For A Picture Wont Go Away
12Next
Add Reply New Topic New Poll
Member
Posts: 5,183
Joined: Feb 27 2009
Gold: 3.58
May 20 2012 08:23pm
<html>
<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="01 - intro - template2.png"
var image2=new Image()
image2.src="02 - image1 - template.png"
var image3=new Image()
image3.src="03 - Annoucement - template.png"
var image4=new Image()
image4.src="04 - slide4 - template.png"
var image5=new Image()
image5.src="05 - Times - template.png"

//-->
</script>
</head>
<body>
<img src"01 - intro - template2.png" border="0" name="slide" width="1024" height="768" />
<script>
<!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src")
if (step<5)
step++
else
step=1
//call function "slideit()" every 5 seconds
setTimeout("slideit()",5000)
}
slideit()
//-->
</script>
</body>
</html>


-----------------------------------------------------------------------------------------------------------------------
I am using that code but there is a white border that i dont want on it. I looked around and when I put border="0" in the <img src it doesnt do anything. Any idea why?
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 20 2012 08:28pm
Got a link to the site where i can see your problem? afaik there's no border if you do not specify the border, but im not very big on html/css
Member
Posts: 5,183
Joined: Feb 27 2009
Gold: 3.58
May 20 2012 08:31pm
Quote (carteblanche @ May 20 2012 10:28pm)
Got a link to the site where i can see your problem? afaik there's no border if you do not specify the border, but im not very big on html/css


sending you it

This post was edited by AmpNsym on May 20 2012 08:31pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 20 2012 08:35pm
Seriously?

Quote
Do not PM me for programming help. Post all details in a topic.
Member
Posts: 5,183
Joined: Feb 27 2009
Gold: 3.58
May 20 2012 08:36pm
Quote (carteblanche @ May 20 2012 10:35pm)
Seriously?


Sorry but I cant post outside links on jsp my bad
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
May 20 2012 08:48pm
Code
<img src"01 - intro - template2.png" border="0" name="slide" width="1024" height="768" />

You're missing an =

Try this:
Code
<img src="01 - intro - template2.png" style="border: 0px;" name="slide" width="1024" height="768" />


If this doesn't work: What browser do you see the border in?
Also, post the fucking link in here. Just obscure the link with stars at random places, or something.

This post was edited by eagl3s1ght on May 20 2012 08:49pm
Member
Posts: 5,183
Joined: Feb 27 2009
Gold: 3.58
May 20 2012 08:53pm
Quote (eagl3s1ght @ May 20 2012 10:48pm)
Code<img src"01 - intro - template2.png" border="0" name="slide" width="1024" height="768" />
You're missing an =

Try this:
Code<img src="01 - intro - template2.png" style="border: 0px;" name="slide" width="1024" height="768" />

If this doesn't work: What browser do you see the border in?
Also, post the fucking link in here. Just obscure the link with stars at random places, or something.


Thank you

This post was edited by AmpNsym on May 20 2012 08:58pm
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
May 20 2012 08:55pm
Quote (AmpNsym @ 21 May 2012 03:53)
http://farooqmasjid.net/Slideshow/Azan.html
and internet explorer
I tried your code and it still has that white border


There is no border on the image.
There is margin on the page, remove it with <body style="margin: 0px;">...
Member
Posts: 5,183
Joined: Feb 27 2009
Gold: 3.58
May 20 2012 08:58pm
Quote (eagl3s1ght @ May 20 2012 10:55pm)
There is no border on the image.
There is margin on the page, remove it with <body style="margin: 0px;">...


O wow thanks. Also do you know a way to make the scroll bars not show?
Member
Posts: 22,605
Joined: Sep 23 2007
Gold: 1.01
Warn: 40%
May 21 2012 03:14am
Quote (AmpNsym @ 21 May 2012 03:58)
O wow thanks. Also do you know a way to make the scroll bars not show?


You mean the scrollbars in the browser window or do you see some scroll bars in elements used on the site?
I can only see the ones of the browser window.
Don't disable them, they are here for usability. Making the site harder to use isn't going to help anyone ;)
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll