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 6540243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:57:16+00:00 2026-05-25T10:57:16+00:00

At the moment I’m creating a Plugin for a Redirect Timer. I’m trying to

  • 0

At the moment I’m creating a Plugin for a Redirect Timer.

I’m trying to make the Position var for the button that looks like :

Button_Position and I want to be able to do: Left, Center, Right

For example:

Button_Position = "center"

Which should center the button

This my code im using to attempt this:

document.write("<div class='holder'></div>");  

if(typeof Button_Position=="left"){
$('.holder').html("<div id='style'></div><span id='redirect'></span><center><button id='buttonn' style='cursor:pointer;float:left;'>"+Button_Value+" &gt;&gt;</button></center>");
}
if(typeof Button_Position=="center"){
$('.holder').html("<div id='style'></div><span id='redirect'></span><center><button id='buttonn' style='cursor:pointer;'>"+Button_Value+" &gt;&gt;</button></center>");
}
if(typeof Button_Position=="right"){
$('.holder').html("<div id='style'></div><span id='redirect'></span><center><button id='buttonn' style='cursor:pointer;float:right;'>"+Button_Value+" &gt;&gt;</button></center>");
}

The Problem is that the Button is not showing anymore like it used to.
Hope someone can help
NOTE: The var for Button_Position is in my Plugin code so that’s not the problem.

  • 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-25T10:57:17+00:00Added an answer on May 25, 2026 at 10:57 am

    remove that “typeof”

    http://jsfiddle.net/genesis/hXtVW/7/

    Button_Position = "left";
    Button_Value = "hi";
    if(Button_Position=="left"){
    $('.holder').html("<div id='style'></div><span id='redirect'></span><center><button id='buttonn' style='cursor:pointer;float:left;'>"+Button_Value+" &gt;&gt;</button></center>");
    }
    if(Button_Position=="center"){
    $('.holder').html("<div id='style'></div><span id='redirect'></span><center><button id='buttonn' style='cursor:pointer;'>"+Button_Value+" &gt;&gt;</button></center>");
    }
    if(Button_Position=="right"){
    $('.holder').html("<div id='style'></div><span id='redirect'></span><center><button id='buttonn' style='cursor:pointer;float:right;'>"+Button_Value+" &gt;&gt;</button></center>");
    }
    

    shows hi >>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment my server outputs HTML that looks something like this: <span class='tag'>music<a
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
The Context At the moment, I have a JTextArea that has been created like
At the moment the LEDs that light up the keyboard of the G1 (HTC
At this moment there is a very basic flash project that connects to a
At the moment I am working on creating a small library for common data
at the moment I try myself on iphone develpment. I read a lot of
At the moment, I have a standard installation of Wordpress 3.0, and the .htaccess
Up to this moment, I still have no luck to resolve this Chinese characters
At the moment, any logged in user can go to http://localhost:3000/notes/note_id and view the

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.