JQuery :: Document.referrer For A Splash Effect?

Jul 21, 2010

I'm trying to create a splash page effect on my index page by adding some full screen images with jquery. I got that to work, but I only want to call the script if a person is arriving at the homepage after coming from an external site. I think I can use document.referrer in something like this:

[Code]...

But it's not working I'm very new to javascript .

View 2 Replies


ADVERTISEMENT

Document.referrer..

Jul 23, 2005

if I put alert(document.referrer) in code of a file that was linked from another it returns blank... pls, need to get document.referrer, don't why it's not working... read up on oreilly, don't know what I'm doing wrong..

View 9 Replies View Related

Document Referrer

Sep 28, 2006

does anyone know if there is anything wrong with this code?

<SCRIPT LANGUAGE="JavaScript">
document.referrer.indexOf("http://www.example.com")
!= -1){ document.write("http://www.example.com/image1.jpg")}
</SCRIPT>

View 5 Replies View Related

Document.referrer Does Not Display

Nov 23, 2005

This is my first time messing with the document.referrer tag in javaScript, and I'm afraid it's giving me some trouble. It all seems very simple and I'm having no problem getting the other document methods to work, but this one just refuses to get in line. Here's my test code:

<HTML>
<HEAD>

<title>refer test</title>

</HEAD>
<BODY>

<P>
<script LANGUAGE=JAVASCRIPT
TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers

document.write('<P>Here's the URL: ' + document.URL);

document.write('<P>Here's the last modified info : ' + document.lastModified);

document.write('<P>Here's the referrer: ' + document.referrer);

//-- Stop hiding script -->
</SCRIPT>
</body>
</HTML>

The document.URL and document.lastModified work fine, but referrer never shows up. Can anyone tell me what I'm doing wrong here?

View 2 Replies View Related

Chrome Does Store Document.referrer?

Feb 6, 2010

Chrome creates new process for each instance(click to any _blank url). The new instance doesn't get 'document.referrer'.

How I can get it for Chrome? (This problems is only for Chrome)

You can create simple links and page.

This page contain next text:
<script language="javascript" type="text/javascript" charset='UTF-8'>
document.write('<H2>');
document.write('<b>Referrer Is: </b>');

[Code]....

View 2 Replies View Related

Getting Document.referrer Past The Ampersand In URL

Mar 14, 2002

When using document.referrer to get the referring URL it only sees up to the ampersand

i.e. www.something.com/script?name=value&

Is there any way to get the rest of the URL?

View 3 Replies View Related

Jquery :: Plugin To Create A Splash Page

Sep 21, 2010

I am using a jquery plugin to create a splash page but can't get it to work.

Here is the plugin page: [url]

And here is my code:

Code HTML4Strict:

So when I test the page nothing happens, I am expecting the image to appear then fade out using the jquery script and plugin which is attached

View 1 Replies View Related

JQuery :: Cookies - Only Loads The Splash Screen Once Every Browser Session

Mar 9, 2011

Right im trying to incorporate a splash screen on recent project like the one here... [URL] But im trying to implement cookies with it so it only loads the splash screen once every browser session but i havent managed to figure this out yet

View 2 Replies View Related

JQuery :: Adding Rollover Effect To Links Font Effect Plug-in

Jun 8, 2011

I am seeking to change the color attribute in my CSS file under the ID's #realmaturesingles and #seniorpeoplemeet upon the hovering of these links. These two ID's are initialized inside an <a> tag (these are links). How can I do this with JavaScript? This is what I tried:

Code:
<script type="text/javascript">
$('#seniorpeoplemeet').FontEffect({
gradient:true,
mirror:true,
mirrorColor:"#CCC"
})
[Code]...

View 1 Replies View Related

Add A Splash Page To The Website

Sep 15, 2010

I've taken over a website and it's programmed using asp. I have no knowledge of asp and now my client wants me to add a splash page to the website.

View 23 Replies View Related

JQuery :: Getting A Show Effect To Stop When Another Effect Is Started?

Apr 22, 2009

Im having a bit of trouble with the bounce show effect from jquery ui. To see what I mean, check out my development site. Anytime you modify a part in this computer builder, the rigth side gets updated. Right now its removing and adding list items. Problem is when click items too fast, the animation doesnt finish and the next item gets bumped lower and lower.

[Code]...

View 1 Replies View Related

Make A Simple Splash Screen?

Feb 14, 2009

I want to know how to make a simple splash screen, appear when the web page start loading and disappear when everything in page have finished loading?

View 1 Replies View Related

Free Scripts That Work Like Exit Splash?

Jun 10, 2009

Anyone aware of any free scripts that work like exit splash? I've seen it used in a few places now.

View 4 Replies View Related

RemoveChild() - Doesn't Remove The 'splash' Element In Half A Second?

Feb 18, 2010

I have this code:

Code:
<html>
<head>
<style type='css/text'/>
splash { position:absolute; left:0px; top:0px; z-index:2 }
page { position:absolute; left:0px; top:0px; z-index:1 }
[Code]....

Why doesn't this remove the 'splash' element in half a second?

View 6 Replies View Related

Changing File Names On The Splash Page (index.html) And 2 Landing Pages

Jun 30, 2011

I have just bought a JS animated web template. I made changes to the file names on the splash page (index.html) and 2 landing pages www.keithmacstanton.com/dez Now everything is all messed up.

View 3 Replies View Related

Parse The Referrer

Feb 23, 2006

Is there a way to turn the document.referrer string into a Location like
object, so I can extrac the domain and other parts of it?

View 2 Replies View Related

Get The Referrer Of JS Popup?

Nov 21, 2009

I have some JS code that launches a popup (which is a PHP enabled page). It's the standard window.open setup.

On that popup, I need to detect the referrer.

In PHP, $_SERVER['HTTP_REFERRER'] is not set, so I get nothing. As well, document.referrer is empty.

So how to detect the referrer?

View 4 Replies View Related

Referrer In Frames

Apr 20, 2005

I have a site with the "standar" three frames (top, left, main) and in one of then i have a link that calls a Javascript function that at some point do

if(readCookie('TreeUtente')==null){
top.location.href = "Login.asp";
return;}

But this is sending the referrer the url of the frame where the code is, not the window url. How can i make the referrer the window url, not the frame url? From what i've serched Javascript can not change the referrer, is there any workaround?

View 3 Replies View Related

HTTP Referrer Header

Jul 16, 2006

Is there a way to set the value of HTTP header Referrer to null or to
any specified value?? I have tried doing this

document.Referrer= null

but document.Referrer is a read only property therefore the value can't
be changed and a Javascript error is occuring. Any ideas on how this
can be achieved.

View 1 Replies View Related

How To Get Top Referrer List On Homepage?

Jul 20, 2005

It certainly doesn't help that IE doesn't seem to pass document.referrer or am I missing something ? Is it set up thru an add-on analysis package? (referrer info from logs? )

View 1 Replies View Related

Find The Referrer URL's Title?

Mar 21, 2010

It should be possible because tracking softwares can find the referrer's title.

View 7 Replies View Related

Redirect On Specific Referrer Url?

Mar 26, 2011

I am looking for a javascript that will redirect if the visitor is coming from a certain specific. url.Basically I need the webpage to do a meta refresh or redirect to a new page if the visitor is coming from a specific url.

So if there was a link on this post to my webpage, it would redirect to google if the visitor came ftom this url,[URL]...

I have adwords coupons and can make a small paypal deposit for your time.

View 1 Replies View Related

Saving URL Parameters From Referrer Link?

May 17, 2010

I am trying to save the URL parameters from a referrer link... For example I have the following link: http:www.rene.com/media.asp?q=1234 and it takes you to a page where the javascript is running and saving the cookie: http:[URL] .Now i came out with the javascript code below but for some reason the parameter q is not saving in the cookie...

function gup( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";

[Code].....

View 1 Replies View Related

Error - Effect Is Undefined - Scriptaculous Effect In My Script

Jun 21, 2010

I am using scriptaculous effect in my script.

But it is giving following error.

Code:

It is giving Error Effect is not defined.

View 3 Replies View Related

Script To Show Div Based On Referrer Within The Same Site?

May 9, 2010

I have very little knowledge of javascript, other than modifying existing scripts, and I can't find anything about this particular problem. creating a simple script that will display a div ONLY if the user comes from a certain page within the same site.

Not sure if that was clear, but let me try with specifics. There is a link to a page called 'Clients' on the 'About Us' page. If a user goes directly to 'Clients', they should have a normal experience. If, however, they come via the 'About Us' page, I want to display a div at the bottom of the page that will take them back to the 'About Us' page.

I know how to get a referrer, and I know how to show/hide divs. I just don't know how to combine the two.

View 3 Replies View Related

Script That Can Hide Referrer And Works With Both IE And Firefox?

Feb 19, 2008

Is there any script that can hide referrer and works with both IE and fire fox?

View 5 Replies View Related







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