Hello there, I have a function that looks like so:
window.attack = function(enemyHealth){
attackChance = Math.floor(Math.random()*11);
console.log("enemyHealth: "+enemyHealth); //undefined...
if (attackChance < 5) { //hit
hitDamage = Math.floor(Math.random()*playerDamage+1);
enemyHealth =...
hello there - made a menu out of the following code but the original href in the top 'edit' link doesn't work any more?
original html code.
<div class="mediaOptionsButtonSet">
<button class="mediaOptionsButton">media options</button>
</div>
<ul class="mediaOptionsMenu">
<li><a href="/youradmin_v2/media/edit/<?=$row['mediaID']?>...
Hi all,
is it possible to create the same window-resize like jsfiddle with jquery?
kind regards
Peter
...
Hi ,
Javascript What is the syntax for zindex
i tried like this
document.getElementById('iframe_div1').style.zIndex =2000;
document.getElementById('iframe_div1').style.z-index =2000;
not working even its not showed the error also
Also tell for jquery...
this is my snippet working fine in html but i want to set this css property i...
Hi there,
I have a dropdown menu that works via
#id ul li ul {
display: none;
}
#id ul li:hover ul {
display: block;
}
and this works fine except i have a li inside the shown ul (#id ul li ul li)
this ul has a .click jquery event assigned to it that,
when it is click it adds four anchor tags inside itself and replaces its content
...
Hey folks, I have a field within a table that I need to do a search and replace on, though it's a bit tricky and beyond my measure of querying skills. Basically, the contents of a field may look like this:
image1.jpg
image2.jpg
image3.jpg
image4.jpg
image5.jpg
I need to do a search and replace that would replace each line with somethi...
When dragging a jquery dialog with an iframe inside , the drag stops if the mouse goes over the frame contents while dragging. It seems that the iframe takes automatically the focus.
is there any way to prevent this and make drag normal?
var iframe=document.createElement('IFRAME');
$(div).append(iframe)
.dialog();
...
Ok, so this is what i currently have. I have a scrolling gallery of 6 or 7 cars. When you mouse over the cars a little window opens up over the car that has vehicle info and a form on it. These windows are hidden elements that are triggered when the mouse hovers over the respective car. Another thing is that it is only ONE element. ...
I'm using the cool jquery airport plugin and trying to make it accept special characters (like accents, "&", etc.). By default it only works with a-z.
Has anybody found how to do that ?
...
I have a page http://armenianmusicawards.ru/gallery where I have horizontal image lists.
What jQuery plugin I can use for horizontal div scrolling on mouse over?
Each row scrolls separately. I tried http://www.maaki.com/thomas/SmoothDivScroll/ , but there is problem, first time scrolls and second time disapears scrollers and nothing ha...
For some reason I only get to the first option when I alert out below and then it exists my entire function. It never iterates through each option:
function SelectAlbumOption(iAlbumID, iAlbumDropdownID)
{
var dropdownID = '#' + iAlbumDropdownID;
$(dropdownID).each(function(index, currentOption)
{
...
Hi,
is there a way to bind the "submit" to the fancybox after success?
Here's what I have:
<div class="ta_l" id="tell_friend">
<form id="form_tell_friend" method="post" action="">
<table cellspacing="0" cellpadding="0" border="0" class="tbl_insert mr_b0">
<tbody>
<tr class="tell_frie...
Hi, I'm using the JQuery datepicker and I have the minDate and maxDate options set correctly so that the dates outside of that span are disabled and grayed out.
No problem.
Now, I want to capture the event when a user does try and select one of these disabled dates. What event do I need to capture so that I can pop up some excla...
Hi,
I am trying to bulk disable all the submit buttons present in my form. I am getting all the buttons using the following jQuery
jQuery('input')
This returns me an array of the Input tags. I can iterate through this and disable each and every one of them. But is there a better way to perform this operation. Something like,
jQuery(...
I have a link button that I want to change it onclick callback function when clicked:
I am using .attr() to change the onclick event but it simply doesn't work.
$('#' + test).text('Unlike');
$('#' + test).attr("onclick", "return deleteLikeComment('"
+ CommentsWrapper + "','" + activityID + "', '" + test + "');");
But it simpl...
I have a jquery file from which I'd like to call a view. The action at the controller is called Inbox. What is the right way to call this action from the jquery file?
...
Designer here, trying to code.
I am almost there! Trying to get a drop down menu from dynamic drive to work over an jQuery image rotator. Played with z-index. I can get the menu to work over the image rotation on all browsers except in IE compatibility mode, cannot click on the buttons in the rotator.
http://local495.bigrigmedia.com/
...
Is it possible to tell if scroll lock mode is currently on through javascript without capturing scroll lock key press event (key was pressed outside of the browser)?
...
I am working on this site here: http://gvc.commercegeneration.com:85/ and I am using two plugins for the top navigation:
MegaMenu - Dropdown - http://www.geektantra.com/2010/05/jquery-megamenu-2/
UI Tabs - http://docs.jquery.com/UI/Tabs
The issue is when you select a nav item the dropdown does not appear under the item you hovered over...
I am using Jquery dynamic form plugin to generate dynamic fields in one of the forms I have in the application. the plugin works fine and it creates the field. I am still confused on what the best way is to get the form field values.
foreach ($this->input->post('product_item') as $key => $value) {
foreach($value as $element)
...