Jump to content

Domasv13

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by Domasv13

  1. I need a help with making a audio player in a popup General idea is to play "Background Music" in a popup continuously on all pages. Website is not a "single page site" so regular background music can't help. Ajaxing is too difficult. So how to make a pop-up ? Any code help ? Thanks
  2. Solved , Script with cookies for continuously music. <audio preload="auto" src="/music/song.mp3" loop="true" autobuffer> Unsupported in Firefox </audio> <script> function setCookie(c_name,value,exdays) { var exdate=new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()); document.cookie=c_name + "=" + c_value; } function getCookie(c_name) { var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i<ARRcookies.length;i++) { x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); x=x.replace(/^\s+|\s+$/g,""); if (x==c_name) { return unescape(y); } } } var song = document.getElementsByTagName('audio')[0]; var played = false; var tillPlayed = getCookie('timePlayed'); function update() { if(!played){ if(tillPlayed){ song.currentTime = tillPlayed; song.play(); played = true; } else { song.play(); played = true; } } else { setCookie('timePlayed', song.currentTime); } } setInterval(update,1000); </script> <div id="page"> <div class="header-container"> <header id="header"> <div class="banner"> <div class="container"> <div class="row"> {hook h="displayBanner"} </div> </div> </div> <div class="nav"> <div class="container"> <div class="row"> <nav>{hook h="displayNav"}</nav> </div> </div> </div> <div> <div class="container"> <div class="row"> {if isset($HOOK_TOP)}{$HOOK_TOP}{/if} </div> </div> </div> </header> </div> <div class="columns-container"> <div id="columns" class="container"> {if $page_name !='index' && $page_name !='pagenotfound'} {include file="$tpl_dir./breadcrumb.tpl"} {/if} <div id="slider_row" class="row"> <div id="top_column" class="center_column col-xs-12 col-sm-12">{hook h="displayTopColumn"}</div> </div> <div class="row"> {if isset($left_column_size) && !empty($left_column_size)} <div id="left_column" class="column col-xs-12 col-sm-{$left_column_size|intval}">{$HOOK_LEFT_COLUMN}</div> {/if} {if isset($left_column_size) && isset($right_column_size)}{assign var='cols' value=(12 - $left_column_size - $right_column_size)}{else}{assign var='cols' value=12}{/if} <div id="center_column" class="center_column col-xs-12 col-sm-{$cols|intval}">
  3. Anyone can help ? Need help with background music
  4. It's not working m8 . Maybe u have project where you can try to add the code to header ?
  5. Tried on maintenance.tpl , Not working . Can't understand why .
  6. Yes , the path is correct . Even tried with URL. Didn't tried on separate , gonna try now
  7. Hey , thanks for you answer. Maybe you can tell more specific place to put a code , because i tried but it won't work. Maybe code is not good ? <embed name="music" src="/music/music.wav" loop="false" hidden="true" autostart="true"></embed>
  8. Hey ,i need a background music. How to do that ? header.tpl ? Code ? Thanks
  9. Hey guys , have a question, Have one theme where i can't find how to edit three logos. url : goo.gl/1klAqf Going to theme -> Settings won't help . Nothing there. Its some kind of apolo themes shit . So what can i do ?
  10. Thanks , You're The Best Around http://www.youtube.com/watch?v=E-WHW-QNswE
  11. Hi guys , i need to edit some text in Contact Block module , but i cant found translate for this. Know the way ? Thank You
  12. Hi , if i need add few codes to different places , its possible to do ?
  13. Hi guys , i need to add more space behing module end. Anyone know the way to do it ? Thanks
  14. Hi guys , i need to delete some email alerts. I dont want people to receive some emails . Maybe know how i can delete some auto emails ? like: on backorder , payment accepted and etc Thank You
  15. Hi , Then i added products to manufacturers their page stop working . Everything works fine , but then i choose manufacturers in index module page dont open and showing too many redirects . Have a fix? Then i dont have any products added to manufactorers page works FIX: Preferences -> Products - Products per page cant be 0
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More