Hi,
I came across the mouseover event on extratorrent site like the following image.
When you hover the mouse over the username link, it shows a hidden div. Pretty neat and slick.
I'm new to jQuery.Can anyone show me how to get start on the right track to do that? Thanks.
Update 1:
I wrote something like the following attempting t...
Does anyone know how to make a live text highlighter in javascript/jquery? with most script ive seen, you have to select the text first then click highlight. how does diigo.com do it?
...
What is the the difference in writing different Script tags like <script>.... or <script language="javascript">..... or <script type="text/javascript">...........?
They all do same things, what is different?
...
is body properties and * properties have different?
i always use body and html properties same.
can i use * properties with body and html?
and what should be different in * and body property?
i unable to understand that is this necessary to use these both property?
if i use one of them than its create any problem?
i use this
*{
...
I ma trying to set the opacity of an element. I am setting it to 0 and it hovers under the mouse pointer which is used for some pretty advanced click tracking.
Works fine in all browsers apart from IE. In IE 8 when filter opacity is set to 0 the element acts as if its display:none. I've also tried using:
$('#tracking').css('opacity',0)...
Hello,
This is my simple webpage :-
<html>
<head>
<style type="text/css">
.body{
max-width:3072px;
min-width:3072px;
margin:0px auto;
background: url('Stripes.png') no-repeat #293231;
background-attachment:fixed;
back...
Google Adsnse has an API that you can use (if you qualify) to generate Adsense ads on your site. The core feature is the function generateAdCode that returns "an HTML snippet that can be dropped into an HTML page for the page to start receiving Google Ads."
Try as hard as I could, I couldn't find a basic example of what that returned "...
Hi,
I have a problem with my mouseover and mouseout. When mouseover a link, it shows hidden div, and mouseout of a div it hides the Div. Problem is that if mouseover a link, then I move mouse somewhere else which is not over the div, the div won't go away.
If I use mouseout event of the link to set the visibility of the Div, then I wo...
Hi
I have this code:
$(document).ready(function(){
//how much items per page to show
var show_per_page = 3;
//getting the amount of elements inside content div
var number_of_items = $('#content').children('span').size();
//calculate the number of pages we are going to have
var number_of_pages = Math.ceil(numbe...
Drawing more than ~5+ SVG lines with the code below makes performance choppy when moving elements, especially if long SVG lines are drawn. Is this just a natural SVG performance limitation (because of the svg canvas size) or is there something fishy with my code?
Project in action can be seen here (only supports Chrome and Firefox so fa...
Hello,
I am unable to delete a div with an id with a period or an asterix.
<div id="*xxx."></div>
<div id=".xxx*"></div>
I have the jquery code, which deletes the <div id="xxx"></div> but not the above. Not looking for the jQuery code, but does it need a forward slash?
----req by anurag--------
// JavaScript
$('.s').click(functio...
Im trying to show/hide a div using jquery when a link gets clicked. I put this in my head section:
<script type="text/javascript">
$("#attach_box").click(function {
$("#sec_box").show()
});
</script>
I have a link that looks like this:
<a href="#" id="attach_box">+ Add a Postal Address (If Different)</a>
And a di...
Is it possible to use HTML and/or Javascript to automatically work out what the next page anchor is and go to it?
Thanks
...
Here's an example:
<p class='animal'>cats</p>
<p class='attribute'>they meow</p>
<p class='attribute'>they have fur</p>
<p class='animal'>turtles</p>
<p class='attribute'>they don't make noises</p>
<p class='attribute'>they have shells</p>
If each animal was in a separate element I could just iterate over the elements. That would be g...
I have an HTML document, which loads content from a PHP file using an AJAX call. The important bit of my code is below:
default.html :
/*more code above*/
var PHP_URL = "content.php";
var Content = document.getElementById('Content');
ajaxRequest = new XMLHttpRequest();
ajaxRequest.onreadystatechange =
function() {
if(ajaxRe...
Hi,
I have the following HTML and Javascript. I just want to show the hidden one at a time only when mouseover a link. If the mouse is over the link "Drink", then show the hidden div below that link only and other hidden div must stay hidden.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DT...
Hi, I have a page with HTML anchor tags that have the title attribute set.
<a href="...." title="Some tooltip text" />
I want to detect when the tooltip is shown, and run some javascript. This is to log that the tooltip has been displayed. Using OnMouseOver isn't enough since it triggers too early.
Any ideas?
...
I know this is a basic PHP question, and I'm trying to learn the stuff. I very familiar with HTML, CSS and familiar with the CONCEPT of PHP, but not with specifics.
I have always partnered with a back end developer to accomplish this stuff and to set up wordpress sites, etc.
I'm building a very basic four or five page website (a showca...
I dislike having to load a new page each time I click a link, I'm thinking of building something similar to iframe.
When i click an anchor tag I want to load a div, but I don't want that div content to be loaded before I click that anchor tag.
I.e. you go to www.example.com, it loads pretty quick, then you click ‘bio’ or ‘contact us’...
I'm using the pretty straightforward jQuery Tools Overlay setup to load external content into the overlay. Check it out here. Basically, it works by using a standard <a> like this: <a rel="#overlay" href="content.html">Overlay</a>. When you click Overlay, content.html loads in an overlay. Nice and easy!
I'm running into trouble because ...