Simple DIV Show / Hide Script Fail - Resolve It?

Nov 25, 2009

This should be working. At least to my knowledge. Can anyone tell me what I'm doing wrong?! I just have 3 divs orignally set to hidden, set to visible on link click. The code speaks for itself (I hope).code

View 1 Replies


ADVERTISEMENT

Using DOM, Simple Show/hide Div Tag?

Mar 7, 2009

So I have a CSS stylesheet which sets the div called mainchat to display:none;. That's fine, but then I wrote a script to show/hide the div by using a link. The link is set to onclick="showhide()".

When I click the link, the div opens up and the contents can be seen. Perfect. But when I click the link again, I want it to hide again (i.e. display:none

[Code]...

View 7 Replies View Related

Add A Simple Hide And Show To The Top Of Site?

Jan 27, 2009

I would like to add a simple hide and show to the top of my site.

So for example i have a normal site and at the top i have a button contact form you click it and it reveals the contact form from the top of the browser.

Like Elliot has done on his site for the speaking events.

View 2 Replies View Related

JQuery :: Simple Show - Hide Div On Hover

Jun 7, 2011

I have a series of links on a page whereby when the user hovers over the title then an image appears next to the link so it basically shows/hides the image on mouseenter and mouseout. I'm presuming this is a fairly basic jQuery request but I've been hunting around for a while now and can only seem to find more complex examples that I can't seem to disect.

The code in my page is:

So when the user hovers over the "Link" then it will show "myimage.jpg" next to the link.

View 4 Replies View Related

JQuery :: Simple Show/Hide Div On Hover

Sep 11, 2011

I'm doing a show/hide div on hover, and what I have works...only when I hover over the .pics-nav div, it blinks repeatedly.

$(document).ready(function() {
$('#product-images').mouseover(function(){
$('.pics-nav').fadeIn();
}).mouseleave(function(){

[Code].....

how to solve a situation like this? Just a super-duper simple thing, but I'm having lots of problems with it.

View 1 Replies View Related

Can't Get Cookie To Remember Simple Show / Hide Preferences - Fix It?

Feb 3, 2009

FIRST THE CODE...

MY PROBLEM:
OK, if you load this up into your browser, you can see I have two lines of text that show/hide themselves by clicking on the other line. I know how to set the cookie name and the two different values ("show_hide_cookie=line1", "show_hide_cookie=line2") and I can see that they are there when I view my browser's cookies. But I've spent hours trying to figure out the javascript code to get it to read the cookie and remember the preferences. Right now of course, if you click on the first line and then refresh your browser, it resets the second line back to the first line.

View 3 Replies View Related

JQuery :: Simple Hide And Show - Dynamic Input Fields

Jul 29, 2009

For example I have this sort code:
for ($i=0;$i<$db;$i++) {
$t1="toggleh$i";
echo "<div class='c'>Test<input name='$t1' type='image' id='$t1' src='test.png'/></div> <br>";
}
I try to make clear the screen for users, so I use hide & show to hide some row on screen what users actually don't need...

The JS part of code is something like this:
$('#toggleh0').click( function() {
$('div.showhide').toggle(400);
});
$('#toggleh1').click( function() {
$('div.showhide').toggle(400);
});
$('#toggleh3').click( function() {
$('div.showhide').toggle(400);
});
.
.
.
I dont know how can do this dynamic. So if "$i=6;" then I need toggle 0-6 function...

View 12 Replies View Related

Simple JS Not Working / Resolve This?

May 28, 2009

Alright simple JS question code...

It's supposed to remove the text if it contains "First Name" and put it back if it equals nothing.

View 16 Replies View Related

JQuery :: Toggle Function - Hide/show Table When Hide/show Button Is Pressed

Sep 12, 2011

I am trying to hide/show table when hide/show button is pressed

Problem: The code works fine when I remove 'slow' from line 10. But with 'slow' in line 10 content of toggleButton doesnt change from Hide to Show when pressed.

Code:

View 1 Replies View Related

Can't Hide Frames / Resolve This?

May 28, 2010

I tried coding something quickly myself and was wondering why I couldn't hide a frame (one with a blue image, one with a red - simple test)

So I gave up and looked through google and found a simple tutorial at

I copied this code exactly into three files, the main html frameset and the two test frames.

Named properly etc etc, but I can't get the hidden frame to show up using the button. So is the functionality behind the scenes the problem here? Or is this some other issue?

View 5 Replies View Related

JQuery :: Simple Hide And FadeIn - Move The Mouse - Hung Up And A Definition Will Not Hide

Jan 4, 2010

I have a simple hide and fadeIn. When you rollover a word it will reveal the definition. The problem I am having is if you move the mouse around quickly from one word to the next word sometimes it gets hung up and a definition will not hide. The result gives this hanging defintion and whatever the other definition the mouse is rolledover.

Here is the code I'm using:

There are about 70 words in a box with the definition being reveals on the right hand side. Is there a way of making sure there is always only one definition being shown?

View 1 Replies View Related

Getting A Simple Div Hide Script?

Dec 14, 2011

<script type="text/javascript">
function toggleVisibility4(controlId)
{
var z = document.forms["frm_sms"]["phone"].value;

[code]...

im not sure where im going wrong i am calling this script from a " onkeyup="toggleVisibility4('arrow')" " the arrow is a div i am wanting to hide when the input field "phone" on a form id of "frm_sms" has more than 10 characters

View 1 Replies View Related

Simple Hide - LightBox (Click Function Not Working)

Dec 17, 2010

This code doesn't work.
$('#lightBoxCloseButton').click(function() {
$('.css3Lightbox').hide();
});

View 1 Replies View Related

Show / Hide Won't Show In Nested List

Jan 22, 2009

I am having problems, basically I have a set of nested lists I need to show and hide

Code:
<ul id="smenu3"><ul id="smenu4">
<li>stuff here..</li>
<li>stuff here..</li>
<li>stuff here..</li>
</ul><ul id="smenu5">
[Code]...

I always want "smenu3" to show with "smenu4" and "smenu5" collapsed... When the user clicks the link, it calls a javascript function to show "smenu4" like so...

[Code]...

View 7 Replies View Related

JQuery :: Add A Scrollto After A Show And A Few Other Simple Functions?

Aug 25, 2011

ill admit im extremely new to jquery i come from the flex/flash world and looking to see what the hype is allo about. with that being said. im trying to perform a simple screen scroll after all this code has run but nothing seems to work

[Code]...

View 2 Replies View Related

Simple Mouseover To Show Larger Image

May 26, 2009

I am currently studying javascript - talk about a whole new world!!I need a simple code for a web page where the thumb images are lined up and when the mouse moves over the image, a larger size of the image is shown above the smaller images.

I have spent hours on the net trying to find something, but can only find either overly complicated or having to download plugins.

View 2 Replies View Related

Show Child Divs In Simple Tabs

Sep 13, 2011

i'm using 'novice to ninja' simple tabs. And I am a novice. i've discovered that child divs of their parent 'tab divs' are hidden... by the following line I think

[Code]....

View 9 Replies View Related

Show Simple Slideable Gallery With ONLY Thumbnails?

Jan 4, 2011

Ive searched everywhere for an image gallery script which shows only thumbnails. -Ive found none =/ What i want is something like this: [URL] BUT i do want just the small thumbnails thats slideable. The below gallery-link is what I want, but it should be sliding like the thumbnails in the above gallery so that I don't have to place 100 pictures in one page. [UR:] Ive found galleries in flash, but it would be great to not have to use flash.. an1 knows about a script like the one in my description? Im not awsome at scripts. I know a little, and have tried to modify some scripts, but ive given up :)

View 1 Replies View Related

JQuery :: Why Isn't This Plugin Working - Can't Even Get Simple Alert To Show

Sep 28, 2011

The actual plugin is much more complex, but I can't even get this simple alert to show...

View 1 Replies View Related

Simple Tooltip To Show Content Of Remote Page?

Aug 28, 2009

I've used about everyone i've found online, with no success.The problem seems to be that these tooltips don't use the fully qualified domain to include pages just tip1.htm instead of somedomain.com/tip.htmTrying to create a "plugin" of script that people coming to the site can cut and paste into their own page and that code will show the content of my remote page.

View 5 Replies View Related

JQuery :: Simple Animation - Image Move Up To Show Bottom

Mar 30, 2010

This is meant to be a very simple animation. Everything seems to be correct, but it doesn't seem to run. Basically it is a system where the image is 50px taller than the box it is being displayed in. When you hover over the image, the image is meant to move up via jquery to show the bottom (previously hidden) 50px and cut off the top 50px.

Here is my Site: [URL]
Here is my HTML:
Code:
<div id="container"><div>
<a class="none" href="<?php the_permalink() ?>"><img src="/themes/smo/portfolio/<?php echo get_post_meta($post->ID, 'portfolio_img',true).".gif"; ?>" alt="" /></a>
</div></div>

Here is the Jquery:
Code:
$(function(){
$("div.container div a").hover(function(){
$("img", this).stop().animate({top:"-51px"},{queue:false,duration:200});
}, function() {
$("img", this).stop().animate({top:"0px"},{queue:false,duration:200});
});
I think its something to do with the container class.

View 4 Replies View Related

JQuery :: Simple Code To Format - Hide Two <div> With An Id="widescreen" On My Sharepoint2007 Page

Sep 2, 2011

I found a Java that could hide two <div> with an id="widescreen" on my sharepoint2007 page. But when I added a certain webpart, my script did not triger.

Then I found a jquery scirpt that I used to hide some list hedings. I noticed that the jquery script do triger even with the webpart on page, that blocked the javascript.

Im a bit lost with java and jquery, but it would be nice if I could get the java into jquery format, and try if that works beter.

Here is the Java script that hides the <div id="widescreen">:

This is the jquery that hides the headings:

Is it possible to write the Java "hidenews6()" into jquery format?

View 3 Replies View Related

JQuery :: Simple Click(display) And Click(hide) Not Working?

Aug 15, 2011

I have this code:

$
(
'#region_dc').
click

[code]....

The click works fine. Check the checkbox, the hidden div displays. But when I uncheck the checkbox, I want it to go away.

View 3 Replies View Related

Hide/show <div>

Aug 11, 2005

I am trying to hide some form elements in a form by default and show/hide
depending on which radio button is clicked. This is what I have but it is
not working: Code:

View 2 Replies View Related

Show/hide

Sep 6, 2005

I'd like to have a show/hide widget on my web site, kind of like "show
details" / "hide details" in Google Groups. Is there a tutorial
explaining how to make them? Google's is a bit complex and it's easy to
get something wrong. If the browser does not support the required
features, I want it to generate a completely static page with the
"details" shown automatically.

View 3 Replies View Related

Show A Div And Hide Another?

Oct 26, 2009

Check this code:

<a>text</a>
<div id="pkg">pkg</div>
<div id="table_pkg">table_pkg</div>

I'd like to show table_pkg and hide pkg when I click on <a>text</a>. How can I do?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved