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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:38:15+00:00 2026-06-08T06:38:15+00:00

Here is My JavaScript. function thisimg(id,recordid) { var newid = addlink_+id; var countid =

  • 0

Here is My JavaScript.

function thisimg(id,recordid)
{
var newid = "addlink_"+id;
var countid = "count_"+id;
var url = "../updateclick.php";
$.post(url,{dbid:recordid},function(data) {  document.getElementById(countid).innerHTML = data; });
var url =document.getElementById(newid).value;
window.open (url,"mywindow","status=1");
}

Here Is My PHP echo

echo "<div class='title box'  onclick='thisimg(".$counter.",".$row['id'].")'><div style='float:left'><img src='".$imgpath."' alt='SimCity Social $name' title='$caption' height='50' width='50' /></div> <div class='click' style='float:right;'><b>Clicks <br/> <div id='count_".$counter."'> ".$click." </div> <input type='hidden' id='addlink_".$counter."' value='".$app_link."' rel='nofollow'</b></div><div style='float:left; width:100px; overflow:hidden; white-space: pre;'> <b> ".$name."</b><br/>".$beforetime."</div></div>";

I want to Modify this code to add check box inside the Title Box and and modify the JavaScript auto function to open checked title Box ‘$app_link’ URL in new window for 10 sec and close it. every checked box URL open one by one for 10 sec. Please give some suggestion or sample code to start with.

Please help.

Thank You For Reading..

  • 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-06-08T06:38:17+00:00Added an answer on June 8, 2026 at 6:38 am

    Note, you have a title and a box class (two separate classes for the same tag), space is the separator for the class attribute of an html tag.

    This is a checkbox:

    <input type="checkbox" id="foo" value="bar" />
    

    Create your own checkbox and put it inside the other tag, that’s the first step. The other needs were not understandable for me but I think I can give you useful hints.

    Use jQuery, that’s the second step.

    Use a class for your tag with the applink, I’ll call this class “app-link” for now, this is the third step.

    I assume that the parent of all your checkboxes in this issue will be of type of box and the jQuery code is here:

    $('.box > input[type="checkbox"]').each(function(){
       if ($(this).prop("checked")
       {
          var url = $(this).parent().find(".app-link").val();
          //Do whatever you want with this URL...
       } 
    });
    

    Use the (untested) code above, this is the fourth step.

    Finally you should make your window opening, this link might help you:
    http://www.webdeveloper.com/forum/showthread.php?t=169300

    Best regards,
    Lajos Árpád.

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

Sidebar

Related Questions

Here is the javascript: function checkusername() { var username = $(#username).val(); $.post(usernamecheck.php, {'username':username}, function
I have a javascript function which I wants in PHP, Here is my JavaScript
I need to pass an url from asp.net load_page to flowplayer javascript function here:
Here is my Javascript formvalidator function: function companyName() { var companyName = document.forms[SRinfo][companyName].value; if
here is my javascript: function namespace(nameSpaceString){ var parts = nameSpaceString.split(.); var parent = window;
Here is my html <a href=index.php><img id=testimg src=images/logo.png/></a> Here is my javascript function getW(){
I have this Javascript here: function getTxt(obj) { var first = obj.innerHTML.substring(0, obj.innerHTML.indexOf('<span class=\item2\>'));
I have php code that calls a javascript function: onclick='fightit(0,0,0,0,0)' Here is the javascript
Here is the JavaScript function ChangeVol(id) { document.form.selectFS_devId.value = id; document.form.selectFS_currentNameSpace.value = ; document.form.submit();
Here i am calling a javascript function on a button click and i need

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.