Random picture code problem
3 posters
Page 1 of 1
Random picture code problem
Hi!
I tried to apply this code in my forum, but it didn'tt work.
https://help.forumotion.com/t127122-random-picture-widget?highlight=random
I saw all 4 pictures, what I coded in, and between this the code words in the widget.
I tried to apply this code in my forum, but it didn'tt work.
https://help.forumotion.com/t127122-random-picture-widget?highlight=random
I saw all 4 pictures, what I coded in, and between this the code words in the widget.
Last edited by MagicWarsAdmin on Tue Jun 03 2014, 16:20; edited 1 time in total
Re: Random picture code problem
Hm, I tried it in my browser and I have the same problem. If you want just a simple slideshow you can edit this anyway you want, change the time, etc.:
- Code:
<html>
<head>
<script language="JavaScript1.1">
<!--
var image1=new Image()
image1.src="http://img4.wikia.nocookie.net/__cb20121203222945/herebemonsters/images/a/a5/Cheese.png"
var image2=new Image()
image2.src="http://upload.wikimedia.org/wikipedia/commons/f/fe/WFromage.png"
var image3=new Image()
image3.src="http://video.eba.gov.tr/597/24a/68b/5fd/a0a/ed4/077/b5f/15e/fe5/30f/04f/ed8/410/002/59724a68b5fda0aed4077b5f15efe530f04fed8410002.png?name=Yiyecek%20%20/%20%C4%B0%C3%A7ecek%20-%20Foods%20/%20Drinks%20-%20Peynir%20-%20Cheese.png"
var image4=new Image()
image4.src="http://lisanewlin.com/wp-content/uploads/2011/10/cheese1.png"
//-->
</script>
</head>
<body>
<img src="image1.gif" name="slide" width=400 height=500>
<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<4)
step++
else
step=1
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
</body>
</html>
*Flora*- Forumember
- Posts : 27
Reputation : 2
Language : English
Re: Random picture code problem
Please change the title of your topic to something that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Random picture code problem
*Flora* wrote:Hm, I tried it in my browser and I have the same problem. If you want just a simple slideshow you can edit this anyway you want, change the time, etc.:It's literally all there so all you have to do is copy and paste. Hope I helped
- Code:
<html>
<head>
<script language="JavaScript1.1">
<!--
var image1=new Image()
image1.src="http://img4.wikia.nocookie.net/__cb20121203222945/herebemonsters/images/a/a5/Cheese.png"
var image2=new Image()
image2.src="http://upload.wikimedia.org/wikipedia/commons/f/fe/WFromage.png"
var image3=new Image()
image3.src="http://video.eba.gov.tr/597/24a/68b/5fd/a0a/ed4/077/b5f/15e/fe5/30f/04f/ed8/410/002/59724a68b5fda0aed4077b5f15efe530f04fed8410002.png?name=Yiyecek%20%20/%20%C4%B0%C3%A7ecek%20-%20Foods%20/%20Drinks%20-%20Peynir%20-%20Cheese.png"
var image4=new Image()
image4.src="http://lisanewlin.com/wp-content/uploads/2011/10/cheese1.png"
//-->
</script>
</head>
<body>
<img src="image1.gif" name="slide" width=400 height=500>
<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<4)
step++
else
step=1
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
</body>
</html>
Thanks, but that is not what I exactly want. The picture in this code not a link.
Similar topics
» Problem with "Resize picture code" of Forumotion?
» Making a picture fly across the screen in random places
» Random Ad Code is there one
» Random code appear on homepage
» Java/HTML/CSS Code for random banner pop-ups
» Making a picture fly across the screen in random places
» Random Ad Code is there one
» Random code appear on homepage
» Java/HTML/CSS Code for random banner pop-ups
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum