The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Random picture code problem

3 posters

Go down

Random picture code problem Empty Random picture code problem

Post by MagicWarsAdmin Mon Jun 02 2014, 18:06

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.


Last edited by MagicWarsAdmin on Tue Jun 03 2014, 16:20; edited 1 time in total
avatar
MagicWarsAdmin
New Member

Posts : 2
Reputation : 1
Language : english

http://magicwars.hungarianforum.com/

Back to top Go down

Random picture code problem Empty Re: Random picture code problem

Post by *Flora* Tue Jun 03 2014, 02:07

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>
It's literally all there so all you have to do is copy and paste. Hope I helped Smile
*Flora*
*Flora*
Forumember

Female Posts : 27
Reputation : 2
Language : English

Back to top Go down

Random picture code problem Empty Re: Random picture code problem

Post by SLGray Tue Jun 03 2014, 04:35

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.


Random picture code problem Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Random picture code problem Empty Re: Random picture code problem

Post by MagicWarsAdmin Tue Jun 03 2014, 16:57

*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.:
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>
It's literally all there so all you have to do is copy and paste. Hope I helped Smile

Thanks, but that is not what I exactly want. The picture in this code not a link.
avatar
MagicWarsAdmin
New Member

Posts : 2
Reputation : 1
Language : english

http://magicwars.hungarianforum.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum