Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6253621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:02:02+00:00 2026-05-24T14:02:02+00:00

I am using this jQuery plugin: http://demo.awkwardgroup.com/showcase/ I am trying to show a counter

  • 0

I am using this jQuery plugin: http://demo.awkwardgroup.com/showcase/

I am trying to show a counter on the first slide of Awkward Showcase and have been unable to nest the call into the script without breaking it to some degree or other. I tried using current_id, but realized that the value of current_id was inconsistent, at least, when I was calling for it. I am now trying to rely on the “active” state of the number 1, which corresponds to the first slide and is consistent.

I realize now that it has a custom_function feature, but don’t know how to plug this in there

var awNavButtonID = document.getElementById('showcase-navigation-button-1');
function myHack() {
var awNavButtonClass = awNavButtonID.className;         
if(awNavButton == 'active'){
    document.getElementById('defaultCountdown').style.left = "250px"; 
    } else {
    document.getElementById('defaultCountdown').style.left = "-9999px";
    }
}



$(document).ready(function(){
$("#showcase").awShowcase(
{
    content_width:  700,
    content_height: 470,
    custom_function: null //how do i plug it in here?
});
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T14:02:03+00:00Added an answer on May 24, 2026 at 2:02 pm

    If you want to bind myHack function to the custom_function callback, try this :

    $("#showcase").awShowcase(
    {
        content_width:  700,
        content_height: 470,
        custom_function: myhack
    });
    

    You can also attach your function to a local variable.

    var myHackFunction = function myHack() { ... }
    ... 
    custom_function: myHackFunction
    

    Finally, you can implement an anonymous function :

    custom_function: function() { /* do stuff here */ }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this plugin: http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider Demo: http://cssglobe.com/lab/easyslider1.7/02.html Maybe somewhere in here can be altered?
I am using this layover plugin to display content: http://jquery.com/demo/grey/ I know there must
Im using this plugin clueTip http://plugins.learningjquery.com/cluetip/demo/ See the first example where you hover your
I am using this plugin: http://jquery.bassistance.de/autocomplete/demo/ I have an autocomplete textarea where the values
I'm using jQuery ThickBox plugin ( http://jquery.com/demo/thickbox/ ). I have been concentrating on functionality
well im using this script right here: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ and I have a multiMonth plugin
for this I am using colorbox jQuery plugin http://colorpowered.com/colorbox/ and a form. I am
at the moment i'm using this validation plugin: ( http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/ ) but when it
I am using a jquery tablesorter plugin( http://tablesorter.com/docs/ ) for sorting my tables. This
I'm adding a Facebook 'like' button to the DOM using this jQuery plugin: http://onerutter.com/open-source/jquery-facebook-like-plugin.html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.