Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

cleggy

Members
  • Joined

  • Last visited

  1. Thanks a lot for that, I knew it would be something really simple I had just overlooked
  2. I'm trying to create a script that will select an advert to be shown at random. The site I'm working on uses the smarty template system so adverts are displayed like this - {module name="banners" function="show_banner_group" group_name="xxx"} Where xxx is replaced by the group name of the advert in the backend - this is what I'm trying to randomise. The code I'm working with only outputs random numbers are opposed to the strings I'm entering into the array, just wondering if anyone can point me in the right direction? <?php $ads_array = array( 'CIG', 'R2K', 'CPW', 'BLH', 'DIX' ); shuffle($ads_array); $ad = array_rand($ads_array,2); echo "{module name=\"banners\" function=\"show_banner_group\" group_name=\"$ad[0]\"}<br />"; echo "{module name=\"banners\" function=\"show_banner_group\" group_name=\"$ad[1]\"}<br />"; ?> An example output would be {module name="banners" function="show_banner_group" group_name="1"} {module name="banners" function="show_banner_group" group_name="3"} but I'm wanting something like {module name="banners" function="show_banner_group" group_name="BLH"} {module name="banners" function="show_banner_group" group_name="R2K"} Thanks in advance
  3. I've always managed to find plugins that do what I require with JavaScript, I found the above code in a tutorial, I understood it and it was easy to implement. My knowledge of JavaScript is basically 0... How would I apply the JQuery Cycle plugin to work on a mouseover event? Does anyone know of a tutorial that would teach me how it's done?
  4. Hey everyone, first post here. Figured it would be a good place to look for advice. The problem I'm having is with this page here - http://bluehoop.co.uk/new/portfolio.html I don't know a lot about Javascript but I've managed to get the image changer working as I want it to but I would like to add some sort of Fade In/Out to the images. This is the current javascript <img src="images/port_srwoodhead.png" alt="" class="pic_left" name="swap"/> <a href="images/port_srwoodhead.png" onMouseOver="swap.src=this.href; return false"><img src="images/p_srwoodhead.png" alt="" class="pic" /></a> <a href="images/port_srwoodhead_email.png" onMouseOver="swap.src=this.href; return false"><img src="images/p_srwoodhead.png" alt="" class="pic" /></a> <a href="images/port_srwoodhead_other.png" onMouseOver="swap.src=this.href; return false"><img src="images/p_srwoodhead.png" alt="" class="pic" /></a> What would the easiest way be of accomplishing this? Would it also be worth pre-loading the images? Thanks in advance.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.