Hello, I need someone to help me.
I have a blog on blogger, and I want the header of my blog to be random image that change every time you refresh.
Like in this blog: http://rhy-sub.blogspot.ca/
What can I change or add to this to make the image shows randomly.
<!--Show the image only-->
<a expr:href='data:blog.homepageUrl' style='display: block'>
<img expr:alt='data:title' expr:id='data:widget.instanceId + "_headerimg"' expr:src='data:sourceUrl' expr:width='data:width' style='display: block'/>
I almost know nothing about HTML and JavaScribt, I couldn’t find anything helpful on the internet.
Hi there Sal,
I cannot speak for other members here, but I personally,
never work with code that has the opening body tag on
line 1639 of the document.
When I validated the page and I saw this…
[center]Fatal Error: Cannot recover after last error.
Any further errors will be ignored.[/center]
…I headed for the hills.
You found the site you refer to, then find how they do.
<img ... /> with the same script, simplified:
var image=new Array();
image="<img alt='' src='image1.png'/>";
image="<img alt='' src='image2.png'/>";
image="<img alt='' src='image3.png'/>";
image="<img alt='' src='image4.png'/>";
Thank you very much, it really helped.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.