Hi,
I have designed three logos with different tag lines, so is it possible to have rotating logos. So every time the page is reloaded a new logo at random is displayed?
I have designed three logos with different tag lines, so is it possible to have rotating logos. So every time the page is reloaded a new logo at random is displayed?
Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0
Use javascript:
Code: Select all
<script language="JavaScript">
function banner() { } ; b = new banner() ; n = 0
b[n++]= "<img name=randimg src='images/me.jpg' >"
b[n++]= "<img name=randimg src='images/me2.jpg' >"
b[n++]= "<img name=randimg src='images/me4.jpg' >"
b[n++]= "<img name=randimg src='images/me5.jpg' >"
b[n++]= "<img name=randimg src='images/me6.jpg' >"
b[n++]= "<img name=randimg src='images/me3.jpg' >"
i=Math.floor(Math.random() * n) ;
document.write( b[i] )
</script>
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo
Hi rjcalifornia,
In what file does this go?
I've tried to look in firebug, but its not showing me.
In what file does this go?
I've tried to look in firebug, but its not showing me.
Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0
The code would go at the end of catalog/view/theme/default/template/common/header.tpl.
If you're using a custom theme, then the code would go in catalog/view/theme/your_theme/template/common/header.tpl
If you're using a custom theme, then the code would go in catalog/view/theme/your_theme/template/common/header.tpl
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Who is online
Users browsing this forum: No registered users and 43 guests