Script Only On One Page Should Be Site-wide?

Jun 1, 2011

I've been trying to install a new shopping basket system to my wordpress site called Easy Basket. Eventually I've managed to get it up and running on preview pages and the homepage but the basket doesn't display on any other pages?Apparently Firebug relays a 404 error file can not be found when Ajax Get tries to write the basket into the page.Here is the coding installed into the head section

HTML Code:
<link rel="stylesheet" href="/easybasket/skins/default.css" type="text/css"/>

HTML Code:
<meta name="easybasket" content="showhide=yes" />
<script type="text/javascript" src="/easybasket/easybasket.js"></script>

View 4 Replies


ADVERTISEMENT

How Wide Is My Printed Page?

Jan 31, 2011

The actual width of the browser window can be in a variety of DOM locations based on the browser:

width = window.innerWidth
width = document.documentElement.clientWidth
width = document.body.clientWidth

to mention a few.if the DOM also holds information about the width of the printed page?

View 4 Replies View Related

JQuery :: Forcing Tables To Go Wide And Plugin To Vanish?

Apr 25, 2010

I'm working on a client's site and I decided to use a slider [URL]... it can be seen there as I develop it.

Here's the problem: If you refresh the page enough times, the table that contains the slider will go SUPER wide, it will go 2400px wide in fact. 2400px is the combined width of all my images.

When I followed the tutorial here on jQuery.com that value was originally set to 99999px ... you can imagine that before I changed that value, the table forced the page out to 99999px wide ... annoying.

Why not just adjust the width to the size of one image? Well I tried that. Each image is 600x300 so I set the width to 600 the result was ... WHOOPSIBROKEIT. The images stack all on top of eachother and slide together. I've noticed that when it happens it also throws off the alignment of the top portion of the site, for instance my center tags -- I'll be looking to see if maybe something outside of the plugin is causing it.

[Code]....

View 1 Replies View Related

Resize Any Images Over 150px Wide Without Mess Up Layout

Jan 12, 2010

I'm coding my new website, and to save bandwidth, i'm letting users link to their own avatars, so I want to resize any images over 150px wide so it doesn't mess up my layout - simple, right? Well, you'd think so, but I don't know any javascript, so i've scrapped this together with what little I know:

var obj=document.getElementsByTagName("img");
for(var i=0;i<obj.length;i++){
if(obj[i].className == "avatar") {
if(getElementWidth(obj[i]) > 150) {
obj[i].style.width = 150;
[Code]...

I need it to check all elements (well, images - but only images will be using it) for a width of over 150px, and, if it is - change it to 150px

View 4 Replies View Related

Automaticly Resize An Image That Has No ID To Be No More Than 380px Wide And A Scaled Hieght

Apr 5, 2009

I'm am (to say the least) useless with JavaScript. I need to script that will automaticly resize an image that has no ID to be no more than 380px wide and a scaled hieght. E.g if the image was originally 760px wide and 100px high, then the resize one would measure 380x50.

View 5 Replies View Related

JQuery :: Make Iframe Page That Loading A Page From Other Site?

Oct 11, 2009

i want to make a iframe page that loading a page from other site. I have try "jQuery iFrame Sizing" to set auto height in iframe... but it is failed.

This is my code :
-------------
on Head
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/iframe.js"></script>
on Body

[Code]....

View 1 Replies View Related

Countdown To Page Refresh - Put A Short Page Of Copy On Each Address Along With Keywords Before Redirecting The User To Main Site

Aug 22, 2011

Our company own a lot of domains and want to put a short page of copy on each address along with keywords before redirecting the user to our main site. I have been able to get the page to load the main site after the desired time using this code in the head...

<META HTTP-EQUIV="refresh" CONTENT="40;URL=http://webaddress.com/">

That works perfectly, I am now trying to display a countdown timer from 40 seconds down to 0, and on 0 redirect the user. Saying something like "You will be redirected in XX seconds". Is there anyway of doing this? I've been searching google for the answers with no luck and can only seem to find timers that countdown to a set date.

View 13 Replies View Related

JQuery :: Make A Smaller (less Width, 230px Wide To Be Exact) Version Of The Audio Player?

Aug 17, 2011

OK so the basic stylesheets comprise about 800 lines of code and look about as fragile as Trump's ego; I don't understand what most of these CSS selectors actually refer to and I'm intimidated about breaking something.I need to make a smaller (less width, 230px wide to be exact) version of the audio player.[URL]

View 2 Replies View Related

Getting A Js Generated Site Map Into A Page

Feb 24, 2011

I use milonic s menu for my website, as such i need to generate some sort of site map so that the various crawlers can get full access....I used to use the phpsite map which came with Milonic Menu, however since i have moved hosts, this has stopped working. [URL] any offers on why it has stopped working are welcome (windows hosting)as it still works on my other site (linux hosting)[URL]anyway, thats not the point of my post....Also provided by milonic is the option to provide a list based menu using some js...

[URL]

I have incorporated this into my site

www.tugtracker.co.uk - click misc on the menu then "Site index" You will see a pop-up erm pops up.... This looks okay and something like what i want, However i need it to be placed into a webpage so i can give it a www.tug..... address and then i can point the crawlers at it.... How do i code it into the page to that the JS will run within the body and result within the body of a page?

View 1 Replies View Related

Reading A Ssl Page From Another Site

Jun 21, 2003

I'm trying to read another site which is on ssl. It has data that changes daily. I do not own the other site. I don't have curl or ssl support with my providor. Is there any way I can do it with Javascript or PHP?

View 2 Replies View Related

Disable A Right Click For Just One Page On A Site?

Feb 6, 2010

How do you disable a right click for just one page on a site?

View 13 Replies View Related

Reloading Site With Correct Page

Aug 8, 2011

I developed a website which should be in german and english. I need to load the site depending on the browser's language. If the user's browser is english and he types URL>..then I have to load the english site with URL...and if the language is german I have to load always URL... I have created a redirect.htm on IIS as the default document and that is not working.

View 1 Replies View Related

Get A Different Site's Entire Page In A String?

Feb 3, 2011

I want to get a different page's entire site in a string so that I can search to see if a certain string is present.

I know var str = document.body.innerHTML will give the actual page that the javascript is in.

But i don't want www.example.com, I want www.example.com/page1. Then I want to use the results of the search on[url]...

View 3 Replies View Related

JQuery :: Use For Repeating Elements In Every Page Of Site?

Nov 27, 2010

I want to repeat 3 .html file in every page of my site. (header.html, footer.html and navigation.html), I read something about php's include() function. but I like to use JQuery's .ajax() or get() function. How can I do that?

View 1 Replies View Related

Random Page Be Loaded Without A Prior Visit To A Site?

Sep 13, 2010

Can a random page be loaded without a prior visit to a site?

I have a list of 15 people with a photo and contact information in a table with 3 columns and 5 rows. The issue is that the people near the bottom want a chance to be at the top the first time the page is viewed. It is unlikely that a second visit would happen.

Is this possible to load a random page for a site without it being viewed or logged into before, therefore no cookies will be used.

View 11 Replies View Related

Make A Slide Show On The Front Page Of The Site?

Aug 6, 2010

i have to make a simple site for my sister and i am kind of a newbie at the whole web development thing am pretty ok with html tho. wo i was trying to make a slide show on the front page of the site, so i got a little help from a site called java script city,

var my_imgs_off = new Array();
var my_imgs_on = new Array();
/* Set "Off" image URLs */

[code]....

View 2 Replies View Related

JQuery :: Restrict User Copy The Site Page Article?

Jun 6, 2009

<div>
</div><div>
</div><div>

How to restrict the user copy the article content in the page ,</div><div>

1.I want to disable the copy from the right click menu ,</div><div>

2.also want to restrict the user Select all the article and take the copy

View 3 Replies View Related

LavaLamp - Modifying JS For Single-page Site - Subtle Animated Effect ?

Jun 27, 2010

I'm using LavaLamp [url] for the main navigation on a site I'm building, for a subtle animated effect.

The site itself is a single-page portfolio site with 3 sections organized vertically, "Home," "About," and "Work."

The problem I'm having is that the clicked navigation does not return to its original position on each panel if I double back on it.

For example, if I'm on the Home panel, and I want to get to About, I'll want to select "About." The LavaLamp animation will ease over to the "About" link on hover, and I'll click it, then the page will scroll to the About panel, where "About" in the navigation is being shown as selected (LavaLamp has a "current" class you can apply to whatever you want to start off as being selected)...

And that's great, BUT, say I want to get back to the Home panel. I click "Home" in the nav, and I'm transported back to the Home panel - but when I was there before, I'd selected "About", and since it's all on the same page, the link is focused on "About," even though I'm on the Home panel. Make sense?

I'm not good enough at JS or jQuery to figure out how to fix this. I think what I want to happen is for every link on each panel to STAY where it was originally assigned ("Home" link will stay on Home, "About" link will stay on About, etc.), but animate on hover only.

Is there a way to write something into the LavaLamp JS to make it so the animation works only on hover, and not on active, focus, or visited?

Here's the code, can't provide a demo page, I don't have anywhere to upload it at the moment...

index.htm with an example of what each panel looks like:

jquery.lavalamp.js:

And last but not least, the LavaLamp CSS:

Forgot to add the page js:

EDITED ALSO TO ADD: Could it have something to do with this:

View 4 Replies View Related

Have The Nav Menu At Left Be A Separate HTML Page That Only Have To Edit Once, And Then Have Repeated Throughout The Site?

Jan 13, 2010

Here is the preliminary design of a site I'm making in Adobe GoLive (CS2) in OSX Snow Leopard:I'm using CSS for the layout.What I'd like to do is have the nav menu at left be a separate HTML page that I only have to edit once, and then have repeated throughout the site.I achieved something similar with a javascript code I learned from a friend for the title and top menu of this site:The script on the ScorpioMartianus page looks like this:

<script language="javascript" type="text/javascript"
src="header.txt"></script>

The header.txt looks like this:

document.write('<center><p><img src="scorpiomartianus_titulus.jpg" alt="" width="597" height="200" border="0"></p><h2> <a href="scorpiomartianus.html">NOVA</a> · <a href="actadiurna.html">ACTA DIVRNA</a> · <a href="commcanalis.xml" target="_top"><img

[code]....

View 14 Replies View Related

Mouseover Verticle Menu - Building A Site With A Vertical Nav On The Left Of Page

Dec 27, 2010

Building a site with a vertical nav on the left of page. Text links. The problem I've been trying to work out is lets say I have 5 links

1. Pumps
2. Motors
3. Cleaners
4. Chemicals
5. Filters

Each link on mouseover, popups to the right and shows links to different pages within the site. example.. pumps. pops up the mouseover window and has 3 links to 3 different pumps, each on a separate pages. Where as the moters link may have 25 links to different kinds of motors etc.

[Code]....

View 5 Replies View Related

Site That Is 2500 Width So That When The Page Loads Can Either Scroll Right Or Left To View The Out Of Screen Material?

Nov 15, 2010

Im having a bit of an issue with a website im building for a band.The band want a site that is 2500 width so that when the page loads you can either scroll right or left to view the out of screen material...i cant find a way of the page loading centered...it is always loading to the far left and all i can do is scroll right...i have uploaded the site to http:[url].... for you to have a look at so you see what i mean.I origionally posted this thread in the CSS forum but was instructed this would be a Javascript issue.

View 1 Replies View Related

WEB Site Opens An Application Window And Then, From Its Original Window It Navigates To A Status Page?

May 11, 2011

My WEB site opens an application window and then, from its original window it navigates to a status page.

Code:
var newWindow
function popUpApplication() {

[code]...

View 5 Replies View Related

Load() Webpage On Div - But Not Load Server Page Or Site

Apr 14, 2009

i want to load web page on div [URL]

Code:
$('#news_modal_container').load(getContents_link);
getContents_link contain site name.

above code work while load local page, but not load server page or site

View 1 Replies View Related

Can JS Suss Out "on-site" Vs Off-site HTTP Requests?

Dec 5, 2006

this may be more of an "html" issue, but I'll wing it.

i've got a multi-language site, where the home-page of each language group
features a link to a popup window that offers background info on site
management. the popup is fired by a javascript function, when they click
the site management link. there's also a "window close" function button so
they can nuke it as they please.

now, oddly, people who search for my site in the chinese language on google,
are sent directly to the site management popup window, which of course,
opens in their "full" browser window, and which also has no links back to
the main site, because it's meant to open only as an "accessory" to the main
site.

my question is this: is there any way, with Javascript, that I could
determine if they arrived at this window from "off-site" (ie, a google
search), and therefore offer such "off-site" visitors a link back to the
principal site, a link that would be hidden for visitors who clicked the
popup window from my own site?

View 2 Replies View Related

Posting Data From A Form On My Site To A Form On Someone Else's Site:

Feb 25, 2006

Basically, I registered for a free board at one of the various sites because my server doesn't support .cgi scripts. I want to know if there is a way to have the data from a form on my site post to the board site -A user would fill in my form, click submit, and a new post would appear on the board site -as if they had entered it there.
If you can point me in the right direction, I would be grateful. Here is my thinking.

A) I can't locate the script that they use to perform a "submit"; so I thought I might enter their <head> data (as far as xmlns, href, etc) in my <head>; that my website might call up their script files, css sheets, etc.

B)I could code my own Javascript function to send my form data to their site. If I knew how to simulate a mouseclick on someone else's site, I could have the script "click" there, paste the data, and hit the submit button. But I don't.

C) I could size their site down to the form itself and put it in a frame on my page

Option C is clearly easier, but I would prefer option A or B. I have time and will happily do the research myself; provided that I know if approach A or B is even feasible.

View 1 Replies View Related

Print Site

Jul 23, 2005

How can I print a web-site without site number and url?

View 6 Replies View Related







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