I am using a conveyor-belt slideshow script from Dynamic Drive and I am wanting to move the script to an external location. But when I do so, the slideshow does not stay in its original location.
LINK WITH SLIDESHOW IN PLACE- [URL] LINK WITH SLIDESHOW OUT OF PLACE- [URL]
I have a small problem which I haven't succeeded to find any answer to. How do I get this to open in an external window? $("#id").click(function() { window.location=$(this).find("a").attr("href"); return false;});
Danged if I can find the thread, but I swear I saw a $.url() reference in here a day or two ago. It was beingutilized for parsing out the window.location or window.location.search parameters. I made a mental note because that was something I would be needing to do.
Now I can't find it, either because the search isn't finding it or I was dreaming about this function existing.
I rummaged about the API docs and didn't find it there either. Is it something provided by one of the plugins and not a function native to jQuery?
//-----10% Off Coupon----- if (coupon=="N110"){ form.PRICE.value=-(moneyFormat(fTotal * .10)-1); form.ID_NUM.value="N110"; form.NAME.value=" Craft Month Promo 10% Off"; location.href=location.href; return true; }
I want to replace the .10 with an external peice of data, so users can change the amount with having to open the script. Sorta like those early marquees' where the marquee text was inserted from a text file.
I hav linked external js (ext1.js) to my app.html page. Now in the ext1.js, I have a function like
[CODE] function onwindowload(){ //Access HTML element and append external js 2 (ext2.js) here }[CODE] //Access HTML element and append external js 2 (ext2.js) here--->I donno how to add external JS here.
Even if i add the external JS here, the JS uses document.write fn. which replaces entire page.
I'm creating a pop-up (it's a timer for hotel guest broadband access) with all attributes turned off. But becasue I have location set to 0 the damn url keeps appearing in the title bar. This causes a major problem as the pop-up displays a countdown in the titlebar that the user should be able to see even when minimised and at present cannot because the url takes up all the room. Code:
I've got a simple navigation system set up in a framed site: navigation/top frame and a main body frame. Whenever you click on a navigation button it passes the new location to this function:
In IE the page changes to Ƈ.7.htm'. In FF (and MZ) the page "flashes" but doesn't change. If I uncomment the alert the page changes. If I put the link in the nav frame the page changes in FF.
Here is my relevant code for an arbitrary page (let's call it PAGE_B): <body onload="window.location.hash='anchor'">
With this code, if the user goes from PAGE_A to PAGE_B, he will jump to PAGE_B#anchor after PAGE_B has fully loaded. BUT... if he clicks the back button, instead of returning to PAGE_A (which is what I want), he will return to PAGE_B (without the anchor).
Is there any way to change this behavior... perhaps to replace the anchor of page without touching the history stack?
I am creating a "Please wait..." page to show a friendly message to my site users while the data is being loaded. I am using location.replace() javascript function to do this.
The problem that I am facing is displaying the records that the application has already processed on the wait page. Does anybody know what can I do to pass data field value from the end page where the data processing is going in background on to the wait page.
Thus far I have it all setup in terms of the divs:
[url]
The setup is :
..then right_sidebar gets made the same height automatically as main_contents. I've color coded them to hopefully make it easier to see whats going on.
The code I'm using is:
As far as I can see its calling the right codes... yet it never seems to move #side_ads.
I'm aware there are plugins that do the same job - but I wanna try and avoid that if possible, as I'm pretty sure this should be simple to do - I must just be missing something.
i m working a web app in which i wanna remove the address bar after login. i created a function in which i said location=no but still i see the address bar. is there any other object to disable it? or am i doing it wrong
I am using Internet Explorer, and I am creating a navigation bar that will take place for the one in the normal. It is in a frame, whick is my homepage. I have an address bar, and when you click go, or enter, the bottom half goes to that page. If you click a link on that page however, the URL in the address bar does not change. Is there a way that it can update itself with the URL of the other frame?
I have a script that displays the system time as the date but is there one that also displays the system location? For example "Location: Poland , Date: Sunday January 22, 2006" or "Location: Russia, Date: Sunday January 22, 2006"
I have a couple of links of which I change location.href for tracking purposes.
The problem is that the links now no longer seem to open in a new window (which was accomplished using target="_blank")
Is this an error on my part or is this by design? Is there a workaround? I would prefer not to use window.open as that could get blocked by a popup blocker.
I have 21 lines in a textarea visible and there are over a thousand lines in it. If my script finds something for the user in line 520, is there a way to set the scrollbar so only lines 510-530 are initially visible?
I am working on my website and am having trouble with the navigation bar. I am using Javascript to write innerHTML and if statements for finding what page I am on. Currently I am trying to figure out how to find out the document name so i could do something like:
I'm passing the asp parameters using the url current page is files.asp and I'm using window.location.href=files.asp?action=deletefile to pass the action to the serverside
My code never got executed (like the page was cached) unless i put document.write("") before the window.location directive.
Here's the code:
function confirmDelete(x){ var potvrda=confirm("Kliknite OK za brisanje. Cancel za povratak."); if (potvrda==true) { trans="files.asp?action="+x; document.write("") window.location.href=trans; } else {} }
I have a footer that is appended to all of my web pages as an include. The pages are different lengths of course so that location of the div in pixels from the top of the page changes with each page. I need to access the location of a div within this footer for reasons I won't go into. The footer may of may not be nested inside other absolute divs, depending on the page.
This:
var obj = document.getElementById('BottomMenuDiv'); var xlocation = parseInt(obj.offsetLeft); var ylocation = parseInt(obj.offsetTop);
will give me the location of the div inside it's parent div. I would like to do something like this:
to go all the way to the top of the page. (Or is there some way to get the divs absolute position without going through it's parents?) What would be the syntax to do this?
I'm trying to use the onload event to load a series of urls. What I find is that the onload function is only called one time no matter how large the array. Here is the onload function.
var next_win = 0; var win = window.open("", "", ""); function nextWin() { if (next_win < urls.length) { win. win.location.href=urls[next_win++]; }}
function subCat(){ var d = document.all; var i = d.sid.value; if(i != "-1"){ window.location = "subcat.php?sid="+i; } }
That is called on the following drop down menu: <select name="sid" class="dropBox" id="sid" onChange="javascript:subCat()"> <option value="-1">Please Select</option> <option value="1">category 1</option> <option value="2">category 2</option> <option value="3">category 3</option> <option value="4">category 4</option> </select>
It works fine in IE but not in Mozilla Firefox, what do i need to chnage to make it work correctly?
I'm working on a page that uses javascript very much. My problem is now that i cannot redirect to another page in IE with window.location =<URL>; This command gets executed (proofed with alert messages) but nothing happens. FF acts like expected but i cant get it work in IE. What can be the problem here?