Making Multiple Pop-ups?

Jan 8, 2006

I know how to make it so you click on a picture and a pop-up window appears with a picture inside. But i dont know how to put multiple pictures that are pop-ups...

View 1 Replies


ADVERTISEMENT

Making Multiple Elements Visible

Jul 27, 2006

I have written a function to make visible elements with a certain id. however i intended it to be used to make visible multiple elements but it only appears to switch on the first element it comes to with that id. after that it appears to stop. i was wondering how i can adapt this function to make visible multiple elements, will i need a different way of referencing or can it be done through id?

function toggleLayer( layerID ) {

var style2 = document.getElementById( layerID );
if (style2.style.display == "block") {
style2.style.display = "none";
}
else {
style2.style.display = "block";
}

}

View 2 Replies View Related

Making Script Work Multiple Times On Page

Nov 27, 2007

I had help with the following script. But, it only works with specific ID, which I have to specify in the javascript code. If I wanted to have multiple sets of selection lists, I would have to duplicate the entire javascript block, which I do not want to do.

My question is, how can I make this script not have hardcoded IDs, and let those be declared where my onchange is? Is this possible? Code:

View 2 Replies View Related

JQuery :: Making Multiple Divs Appear Or Disappear When Diff Sections Of Site Are Scrolled To?

Jul 14, 2011

I am trying to create a fixed crest at the top of my site that changes depending on where the viewer of the site scrolls to.

I found the following script/plugin on StackOverflow that works well for making one element fade in and fade out.

PART ONE:

function isScrolledIntoView(elem) {
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(elem).offset().top;

[Code].....

I then duplicated part two and changed the variables to make a different div appear in this position depending on where the viewer was in the site but it did not work past the first transition. see the following link to get a better idea what I am trying to achieve.

[URL]

Is there any way I can adjust the script to make it work with multiple transitions?

View 2 Replies View Related

JQuery :: Multiple Select Lists In Multiple Rows That Have Been Dynamically Added?

Mar 7, 2010

I've been stumped. I'm usually good at figuring this stuff out, but I'm completely confounded here.I have a form with tables in it to add items to a series. The rows are being added dynamically by Jquery on the click event.

$('#add_hybrid').click(function(){
$('#hybrid tr:last').after('<tr><td width="15%"><?=brands('hybrid');?><input name="clubtypes[]" value="6" type="hidden" /></td><td width="25%"><?

[code]....

View 5 Replies View Related

JQuery :: Multiple Image Buttons To Show / Hide Multiple Elements

Sep 27, 2010

I am using jquery with the cookie plugin and I have multiple image buttons that can hide/show multiple elements. My question is how can I add a cookie to this code to remember whether each separate element is opened or closed?

The code,
$(document).ready(function() {
// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText='<div class="expanddown"></div>';
var hideText='<div class="expandup"></div>';
// initialise the visibility check
var is_visible = false;
// append show/hide links to the element directly preceding the element with a class of "toggle"
$('.toggle').prev().append('<a href="#" class="togglelink">'+hideText+'</a>');
// capture clicks on the toggle links
$('a.togglelink').click(function() {
// switch visibility
is_visible = !is_visible;
// change the link depending on whether the element is shown or hidden
$(this).html( (!is_visible) ? hideText : showText);
// toggle the display - uncomment the next line for a basic "accordion" style
//$('.toggle').hide();$('a.toggleLink').html(showText);
$(this).parent().next('.toggle').slideToggle('fast');
// return false so any link destination is not followed
return false;
});
});
HTML,
<a class="togglelink" href="#"></a>
<div class="toggle">
Content
</div>

View 6 Replies View Related

Forms: Multiple Destinations Depending On Combo Of Multiple Select Boxes?

Sep 5, 2010

I'm trying to search for the correct code to make my form work. I have 3 select boxes - one with 2 options, one with 8 options, and the last with 2 options... All of this adds up to 32 different url paths. Can anyone tell me how to get this done?This is what I have so far: (and yea, I know I suck... I honestly have absolutely NO clue)

<html>
<head>
<script>

[code]....

View 2 Replies View Related

Multiple Popup Windows Opened When A Button Is Clicked Multiple Times.

May 25, 2006

This is my first post to this forum. When a button in parent window is clicked multiple times, more than one popup window is opened. This problem is occurring in linux firefox and mozilla browsers. In windows the code is working fine. Is there any option in window.open() method to open a popup window once. s there any known issue regarding this case?. Need a workaround to fix this issue.

View 1 Replies View Related

Multiple Child Windows Opened When A Button Is Clicked Multiple Times?

May 24, 2006

hen a button in parent window is clicked multiple times, more than one child window is opened. This problem is occurring in linux. In windows the code is working fine. Is there any option in window.open() method to open a child window once.

View 8 Replies View Related

Making A Pdf Out Of Javascript

Oct 23, 2007

is it possible to create a pdf file using javascript language?

View 1 Replies View Related

Making A Menu

Jul 20, 2005

I want to try and make a menu using javascript and DHTML. I want the
menu to be horizontaly placed on top of the webpage. When I move the
cursor over it a popup menu comes up. Sort of like what you can find
on the first page of Micrsoft.com near the top. But I want the menu to
have a more transparent blue color. Is that possible? Also where would
I go to find out how to do this?

View 1 Replies View Related

Making Images Pop Up?

Aug 23, 2011

I have a client who wants a gallery of images to pop up on her enter page similar to this site, http://bit.ly/mUscmo . It won't be identical, but she likes the way the images all pop up and then just stay there.I know how to function JavaScript, but I don't know how to write it from scratch. Is there any where I could find a code that does something similar to this?

View 11 Replies View Related

Form Making

Feb 8, 2006

how to make a form to show up on a html page from the site today but I'm still really confused by something

1. I was making a form to have ppl enter their info then it will e-mail the info to me, but I don't know what to do to make the data send to an e-mail address.

2 I don't know how to write the script so it will tell ppl "your form have been sent" if all the info did sent to my e-mail.

View 3 Replies View Related

Making A Function Run Only Once?

Apr 6, 2010

i am working on a page which direct users who come on website to index.php which i created in a new pop up window. i was checking that if someone (stupidly) refresh the url of my web from where he is redirected to the index.php ,it re run the funtion and another pop up is created. is there anyway i can add validation kind of thing that if pop up is created it alert the user that web page already opened. can i able to do that?

View 2 Replies View Related

Making Cookies

Jun 10, 2005

There are a lot of extremely smart members here, so I thought if the knowledge is out there, this would be the place to tap into it. I have included the code below that I am working with. What I want is for a person to enter their name and room number and coffee preference. Then a cookie will store that information and tell them a cup will be sent to them at their room. When the page is loaded again their preference will be remembered and they will be offered a discount for their favorite coffee. This is part of a self taught book I am studying.

Most of it works, but I think the selection of coffee from the radio button is not being stored in the cookie, or at least I can not recall it. I was also wondering if there was some way that I could combine the makeCookie and welcome functions so that there would only be one button to click on the page. Code:

View 2 Replies View Related

Making URL Not Editable

Jan 12, 2010

I am not sure this belongs in the JavaScript section so apologies if it doesn't.
I want to be able to open a link in a new window, but make sure the users are not able to modify the URL.
Is that possible?

View 4 Replies View Related

Making A List Read-only

Jul 23, 2005

I'm having difficulty making a list (both drop down and radio button) read
only; I am successful when I attempt to make a text field read only. Any
suggestions on what java script I use to accomplish this?

View 1 Replies View Related

Making A Smart Regex

Dec 14, 2005

I am trying to write a regex that will parse BBcode into HTML using
JavaScript. Everything was going smoothly using the string class
replace() operator with regex's until I got to the list tag.
Implementing the list tag itself was fairly easy. What was not was
trying to handle the list items. For some reason, in BBcode, they
didn't bother defining an end tag for a list item. I guess that they
designed it with bad old HTML 3.2 in mind where you could make a list
by using:

<ul>
<li>item 1
<li>item2
</ul>

However, I need to make this XHTML compliant, so I needed to add the
</li> tag into the mix. Unfortunately, the only way to find where to
put it is to find the next[*] (<li>) tag or an open list (in the case
of nested lists) or close list tag. I was trying to get a rule that
handles the list items to work, but it only matches the first item in
any list. Here is the line of code:

bbcode =
bbcode.replace(/[list(=1|=a|)](.*?)[*](.*?)([*]|[list]|[/list])/g,
'[list$1]$2<li>$3</li>$4');

First, I check to make sure that the list item is inside a list. Then,
I match the[*] tag to find the start of the item, then I match either
the next[*],, orto determine the end of the item.
This successfully prevents a list item outside of a list from being
made into a <li> element, but only matches the first list item in a
list. Is there any way to make this match all occurances of this
pattern without looping over the statement until the pattern can no
longer be found?

View 13 Replies View Related

Making A Back Button

Jul 20, 2005

I have a graphic with a rollover for site navigation on each page. I
put the page to go back to in the rollover javascript.

My question is, is it possible to put in some code that will refer the
visitor back to whatever page they came from rather than one I
specify?

The rollover is combined with a tooltip script to make matters fun
(below). However, I'm quite happy to lose the tooltip to have the link
perform as a back button.

<a href="../index.asp"
onmouseover="document.images['link1'].src=img2.src;
showtip(this,event,'Back to home page');"
onmouseout="document.images['link1'].src=img1.src; hidetip()";><img
src="bhome.gif" name="link1" border=0></a>

View 3 Replies View Related

JQuery :: Making A Div Get And Set Its Own Width?

Jan 28, 2010

I don't know if this will work, but I'm trying to put a google map on my website and in IE, the div containing the map needs to have a width value in pixels in order for the API to center the map properly. want a div with 100% width, which is inside another expanding column. This works everywhere but IE. My question is, Is there a way, using jQuery, to get the div to discover its inherent width and then apply that in pixels, as an inline style, to that tag? It would also have to redefine its width when the window resizes.

View 2 Replies View Related

JQuery :: Making A Pop Up Box On A Calendar?

May 8, 2010

I am trying to build a calendar that has clickable dates that reveal a pop up box with the event of the day when you click on them.I have got some basic functionality at the moment with the pop up working on one date,making it work on multiple dates.at the moment I have the pop up box positioned relative and and am using the toggle function to switch the display form none to block.I need to work out how to position the pop up box no matter which date you click on?here is the mark up for part of the table:

<tr>
<td>21</td>
<td>22</td>

[code]....

View 1 Replies View Related

Making Dialog Box To Open Another One?

Feb 17, 2010

I am trying to get a dialog box to open another dialog box. Clicking on "more search options" the first time results in opening a dialog box. Clicking "search" within the dialog box results in opening up a second dialog box. But this only works the first time I click on "more search options". In other words, the second dialog box only opens up only once. To get the second dialog to open again, I have to reload the page in the browser. CSS and jquery code can be downloaded from [URL].

View 1 Replies View Related

Making Image Clickable Only Once

Apr 11, 2010

I have an image on which when user click I submit my form after doing basic javascript validation.I want user not to be able to click once they clicked on the image so that they don't submit it twice. Right now I disable the image once they click it.I was wondering is there any other way I can do that, is there any way to make image click able only once?

View 5 Replies View Related

Making An Array Lowercase

Nov 6, 2009

Is it possible to make an array lowercase at all? or can you only do this with a string?

View 5 Replies View Related

Making My Script Smoother?

Jun 11, 2010

I recently made my first ever ajax chat, and works given im a noob im quite happy about it :P How ever, sadly - its not smooth like some ajax chat's i've seen out there. And when i submit a message to teh chat the page refreshes.I was wondering if some one could help me by explaining how i can improve the efficientcy of it so it won't refresh and reacts alot quicker to create a live effect - This is what i got for my code:

<script type="text/JavaScript">
function sendMessage()
{[code]....

The PHP is chat.php loads the chat (a MYSQL query getting latest 20 chat messages and loops them out into the div)chatpost inserts the message to the table.

View 10 Replies View Related

While Loop For Making Password?

May 15, 2011

Im trying to write coding for entering a password into a prompt box, Ive got the prompt to work however I only want the password to work if 7 characters are entered, here is what I have:

var strPromptBox;
var strPasswordLength;
function validatePassword()

[code]....

View 3 Replies View Related







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