Beginner Needs Help With Geo Targeting

Nov 23, 2005

What I want to do is a simple geo target for some ads I have. If a
visitor from the UK or US views a page I want a specific ad to load up,
if they are outside the UK or US a want a different ad to load up.

Is this possible with Javascript? I don't need a complicated PHP
script, just this simple task.

View 2 Replies


ADVERTISEMENT

Best Beginner Java Coder Download?

Jan 20, 2009

Where can I find a good Java Script writer? Preferably free and easy to manuver/manipulate.

View 8 Replies View Related

Beginner - Create An Image Library?

Dec 5, 2010

First off I'm incredibly new to JavaScript and its likely I am going about this completely the wrong way. But gotta start somewhere. Also my apologise if I am posting in the wrong area.

Here's my problem. I have setup a site in CSS3/XHTML that I will use to display some of my photography (im a keen photographer) The way my Gallery will work will be using Submenu's then there will be a table of Thumbnails which I have setup.

The part I am stuck on is that I want people to be able to click the thumbnails and then the corresponding picture held in the next folder to be displayed in a CSS defined container in the center of the page.

So clicking _Images/Thumbnails/1.gif will bring up _/Images/1.gif in the CSS container For the life of me I cannot work out how to do it though. Here is my code so far.

[Code]...

View 3 Replies View Related

Absolute Beginner - Style Not Changing?

Jan 29, 2011

I have written this, amongst other stuff:

HTML Code:
<!DOCTYPE HTML>
<html>
<head>
<title>HTML / CSS</title>
<script type="text/javascript" >

[Code]...

I am trying to get the color of the list item 'SUBJECTS' to turn red on mouse over. I think my syntax must be wrong but I don't know how so. What can I do to fix it?

View 4 Replies View Related

Update A Textbox From A Button < Beginner >

Jan 13, 2011

There is textbox, and 2 buttons in a web page. when the user clicks one of the button, the character 'A', should get printed on the textbox. and when the user clicks on the other button, 'B', should get printed on the textbox in the format 'AB'.

View 4 Replies View Related

Beginner - OnClick Cmd W/ Linking Text To Pics?

Apr 12, 2010

Im currently working on a project for class and have been directed to use Javascript for what im looking to do. Im a beginner when it comes to coding w/ javascript. Over the last couple days I've spent good time reading and practicing tutorials but have yet to do something I imagine is very basic for what I want to do.

At the moment, im looking to insert text into a webpage, that links to images. The images, ideally will layer on top of each other (Multiple images can be shown based on the "text" which activates it) Images shown, if done what im looking for, will have a transparent background to view images set behind one another. I've spent a couple hours looking up code through google, found similiar code which i've tried to manipulate to do what I want. I have yet to put something successful together. Was hoping I could look upon experience programmers to help me out by pointing me in the right direction. Im willing to do the work, just looking for that guidance

View 1 Replies View Related

Beginner Project: Chrome, Use Of Eval(), Detecting Window Size?

Jul 21, 2009

I have done some ugly hacking in JavaScript before but nothing serious. Now I have decided to learn the language properly, so yesterday I threw together a function plotter that you can see here: balazsbotond dot hu/plotterThe script is here: balazsbotond dot hu/plotter/raphael-test.jsI use Google Chrome as my primary browser. My script works perfectly in every other browser (IE6, IE8, FF, Opera, Safari), but there are some problems in Chrome. Some functions do not work at all (exp()), some do not always work (sin(x) works, x*sin(x) works sometimes, 0.7*x*sin(x) never works). Since I am new to JS and this seems to be a very subtle problem, I have no idea where to start.

I have read that the use of eval() is not recommended because of performance and security reasons. erformance is not a problem here (eval is definitely better here than writing my own expression parser), but what about security? Did my use of eval introduce a security risk in my site (I find this quite unlikely because the whole thing runs on the client side but who knows...)?By the way, is there a way to detect if eval() was not successful?And finally, is there a reliable, cross-browser way of getting the client size of the window? I'm talking about the size without the title bar, toolbars, etc. My solution does not work in IE6 and IE8.

View 5 Replies View Related

Targeting Specific Methods

Mar 12, 2007

I am wondering if it is possible to get the response from a method
within a given page, and that function alone? Traditionally, I have
been getting the response from the Page_Load method of the targeted
page, but now I want the response from a particular method on the
target page:

Public Sub SomeCallback(ByVal sender As Object, ByVal e As EventArgs)

'RETURN XML FOR CALLBACK

End Sub

View 4 Replies View Related

JQuery :: Script Targeting Only Following ID?

Mar 11, 2011

I have following little script that applies to my entire html page:

$("td[id*='MSOZoneCell_WebPartWPQ']>table>tbody>tr>td").each
(
function()

[code]....

View 19 Replies View Related

JQuery :: Targeting Xml Grandchildren?

May 19, 2010

i have a xml document (static) that I need to test what is in a grand child element. The real application is a jqGrid. I have a onSelectRow operation going on. I can click on a row and get a response (in a alert window) for any root children. But how do I do this for anything deeper in the tree? A portion of my xml is attached.

[Code]...

View 2 Replies View Related

Odd Simple GetElementById Targeting ?

Apr 12, 2010

So I'm having an odd problem (at least odd to me).When I use getElementById to target an element in the DOM, it will work fine until I place it within the content DIV wrapper. Do I have to create a path like getElementById(wrapperDiv.targetItem) or what?

View 6 Replies View Related

Targeting An Iframe From A JS Submit Button

Jan 10, 2006

I've got a dropdown list of products and I have a button that will add
the product to my cart. However, as with all my 'add to cart' buttons,
when the user clicks it I want to pass the details to my cart via an
iframe so that the user doesn't leave the page they are on. I am
writing in PHP4 and mySQL, and have had to add some javascript for the
onclick event.

The code for the dropdown list is as follows:

View 1 Replies View Related

JQuery :: Targeting A Div As Content For Lightbox?

Apr 29, 2010

I have a JQuery lightbox popup but am struggling how to control the content of the lightbox. all the examples given on the internet are from anchor links that are fixed. I however, need to use it from images pulled from the database so therefore the content will be different depending on what image is clicked. I already have the content I need in a div, so is there a way of targeting that div so it is displayed within the lightbox?

View 2 Replies View Related

JQuery :: Targeting Multiple Elements

Dec 24, 2009

I am putting together a validation function and am having trouble with targeting multiple elements.[code]an onclick event fires my validation function. If any of the fields are empty, the appropriate error message should display.This sort of works. If all of the fields are empty, only the error message of the first element is displayed, not all 3.

View 1 Replies View Related

Targeting A Form Field In A Different Frame

Oct 8, 2007

I have a frameset with two frames one, scriptFrame, containing a page with the javascript on it the other, mainFrame containing a page with a form, form1, on in, with the text field, text1 in it.

I want to target the text field and change the value from the script running in the scriptFrame.

The code i have is:

parent.mainFrame.document.form1.text1.value='x'

But this does not work.

I can target the document ok using:

parent.mainFrame.document.bgColor="violet"

And running a script from the page with the form on it I can target the form using:

document.form1.text1.value='x'

So why doesn't it work when I put the two together? Any help would be much appreciated.

View 5 Replies View Related

Targeting In Iframe From A Javascript Function

May 30, 2004

how would i target an iframe from a javascript function? i need to loaad a new html page in the iframe.

View 4 Replies View Related

If Found Adsense Targeting Code

Sep 24, 2007

I am taking the contents of a webpage:

var body = document.body.innerHTML;

How can i scan body and if it finds:

<!-- google_ad_section_start -->
<!-- google_ad_section_end -->

the body content becomes just what's within those tags?

View 4 Replies View Related

Load Iframe1 Content Into Iframe2 Without Using Targeting?

Dec 1, 2011

For my new site I plan to have 2 iframes (iframe1 and iframe2) and what I am hoping for is that when any link is clicked inside iframe1 the page will be loaded in iframe2. I know you can target links inside an iframe to load in another iframe, however this will not be possible as the content of iframe1 will be an external search engine such as google meaning of course I can't edit the source to target the links.Does anyone know if it is possible to use javascript or any other web language to get links clicked in 1 iframe to load in another?

View 1 Replies View Related

JQuery :: Cycle Plugin - Targeting Child Element?

Jun 13, 2009

I'm customizing the cycle plugin a bit from [URL] , which slides through a number of items.The issue I have is selecting a child object, to get its 'alt' attribute, and display it as a description. Using the default example:

function onBefore() {
$('#output').html("Scrolling image:<br>" + this.alt );
}

...works great when each item is an image. But I need to link each element, so my markup looks like this:

<div id="slideshow1" class="pics">
<a href="portfolio.html" title="Go to Project"><img src="tree.jpg" width="200" height="200" class="featuredimage" alt="Tree Branches" /></a>

[code]....

I'm not sure how to get the child element's alt attribute. I've searched through jQuery documentation and googled around, but can't get it working.

View 1 Replies View Related

JQuery :: Dynamic Inputs Targeting For Validation Rules?

May 6, 2011

I'm working on the validation plugin for jquery and trying to figure out how I can target the text boxes that are dynamically generated with this change event. I'm trying to target them so I can set up rules for my page.

[Code]...

View 11 Replies View Related

JQuery :: :not Targeting A Child Element Not Working Correctly?

Nov 17, 2011

I'm trying to use a :not statement, so if you click anywhere else on the page BUT the element in the :not a div will disappear. When i use the same statement without the not, it works fine (click that one element and the div in the function hides).I'm assuming that the :not statement isn't working because the element is a child of its parent, so when you click it, essentially you are still clicking the parent which isn't included in the :not.

j(':not(.arrow)').live('click', function(e) {
j('.label').hide();
});

View 9 Replies View Related

JQuery :: Targeting Specific Nested Elements Of $(this) Efficiently?

Nov 24, 2010

My HTML:

<div class="home-button">
<span><a href="#" style="">Button</a></span>
</div>

I have an instance of a div (button), inside this div is a link wrapped in a span. When you hover over the div (".home-button")I want to move the background position inside its "span a", I've achieved this using the code below.

[Code]...

View 1 Replies View Related

JavaScript Powered Search Script - Results Targeting.

Dec 26, 2007

I have been working on a Javascript powered search engine for a set of browser based user guides. I can't use any server-side languages as it will all be accessed from a network drive, which as been a real pain as I would rather have just made a php search engine, but whatever...

I have a working JavaScript search function, currently the results are displayed in the same window/frame as the search form.

All i need is to be able to target the results to a different frame. For example, I'll keep the search form in a top frame, and some information in the bottom frame. Submitting the search form will display the results in the bottom frame. Its giving me a headache, I'm sure it is remarkably simple. Code:

View 5 Replies View Related

JQuery :: AddClass Fails When Targeting A Specific Class Instance?

Nov 17, 2011

I have a large number of "li"s with the same class - i.e;

<li class="month01Days"></li>
:
:

[code]....

View 1 Replies View Related

JQuery :: Targeting First And Last "<a>" In Each Div?

Dec 2, 2011

I have been haven a few issues with this. Let me give you a basic idea of what the layout looks like.

[Code]...

This does almost what I need it to, It will turn the last two (<a>'s) and place "test" inside them without touching the <a>'s inside the other children. So I thought I would try$(".main > a:first").html("test"); But that will change the first <a> which is good, but it only changes the first <a> in the first main div, instead of in all main divs.

View 5 Replies View Related







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