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.

Replace Text Character with Image

Featured Replies

 

Hi folks, i'm hoping someone can help me out here. Basically i have a Database Count on my site, which is tied into a Search Filter. So on entering the site it Displays 2,700 Vehicles in Stock. It is then tied in to a set of drop downs to change when a Manufacturer is Chosen and then with Model being chosen.

 

What i want to do is style each individual Character to make it look like a nice Digital Counter, unfortunately css doesn't allow individual character styling, and as the Number is generated Dynamically i cannot <span> each individual character, so i am looking for answers ...

 

I stumbled across lettering js which on first impression gave me exactly what i wanted .. Output like below

 

<h1 class="fancy_title">
<span class="char1">2</span>
<span class="char2">,</span>
<span class="char3">7</span>
<span class="char4">0</span>
<span class="char5">0</span>
</h1>

 

Unfortunately this only functions on the first page load, but doesn't apply to the number once it changes. I assume this is because the number changes with ajax and lettering js requires a page re-load.

 

So can anybody tell me

(a) An alternative way of achieving individual character replacement with an individual image or

(B) An option for applying lettering js without a page re-load ..

 

Thanks for any help !!

Create an account or sign in to comment

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.