Display The Viewer's Geographic Location?
Mar 21, 2010display the viewer's geographic location? How do I?
View 1 Repliesdisplay the viewer's geographic location? How do I?
View 1 RepliesI'm currently paying for a web service on a hosted platform. Basically, I'm unable to edit any raw content, however I am able to do things like add JS/HTML to the header or footer of a page, which will in turn be displayed on every page of this platform. My dilemma is, I only want content being showed on a single page of the platform. Specifically, I want a window.alert being displayed on the "/signup" page, but all I have to work with is JS in a global footer.Is there some way I can use window.location to achieve this?
View 1 Replies View RelatedI am completely new to Javascript and html... but not to programming.
I'm trying to modify something that someone wrote and trying to keep it standardized... meaning they way the did it. Here is an example of what they did. code...
What I'd like to do is display a png image file in a similar fashion if possible... I'm not sure if it can be done use getElementById.
Actually, I'd like to do <div> instead of a table so that I can layer images. I've converted the table above to using <div>, but again, I can't figure out how to do this with an image file.
The main reason for doing this is because I'd like to use the setTimeout feature.
I'm currently paying for a web service on a hosted platform. Basically, I'm unable to edit any raw content, however I am able to do things like add JS/HTML to the header or footer of a page, which will in turn be displayed on every page of this platform. My dilemma is, I only want content being showed on a single page of the platform. Specifically, I want a window.alert being displayed on the "/signup" page, but all I have to work with is JS in a global footer.
Is there some way I can use window.location to achieve this?
I'm playing with the great Bassistance jQuery Validator and am stuck at a point The idea is simple: I have lot of this markup (I semplify, but the idea is that after each <input> there could be something else, i.e. a word, an icon, etc... that is "inline" with the corresponding<input>):
<ol>
<li><input type="text" id="width" size="3"></input> px</li>
<li><input type="text" id="height" size="3"></input> px</li>
<li><input type="text" id="thumb" size="3"></input> px</li>
</ol>
[Code]....
what I want to learn to do is have a feature on my website: [URL] where under the portfolio section there are multiple links (product, packaging, identity etc) I want different carousels to show up on the .index page when you click a certain one of those links. In old school HTML I believe you would use a frame but I know there is a better way to do it using jQuery. [URL](work section) does exactly how I want it to be except I don't need the fancybox feature.
View 1 Replies View RelatedIs there a way of displaying the id of the element under the pointer ?
Please dont ask why I need it, but I do, i found tools that needs
installation that provide the same funcitonality. However, I would
like to turn on this feature using a flag in my url. Something like
debug=1.
I am looking for a Javascript program which will display a thumbnail view of
all the images in a particular folder.
If the user clicks on one of the thumbnail images then a larger view of the
image will be displayed.
I am presently using a forward/backward type of viewer.
The code I am using requires all the image file names to be named with an
ascending number as part of the file name.
For example ;
img001.jpg
img002.jpg
img003.jpg
etc. etc.
This scheme requires renaming all of the original file names, too much work
if you have lots of images and in addition it does not display thumbnails.
Can anyone point me to a better piece of Javascript code.
The Javascript code I am looking for should accept a folder name and should
not require renaming all the original images.
In this viewer, I need to have the focus go back to the main page after a selection is made. Otherwise, the user may scroll his mousewheel and change the selection. I forget just how.
<body>
<select id="viewer" onchange="song()" size="1">
<option value="none">::::::::::::: Choose Your Video Here :::::::::::::</option>
<option value="x/wmv">Video 1</option>
<option value="y.wmv">Video 2</option>
<option value="z.wmv">Video 3</option>
</select>
</body>
I was wondering I really like the image viewer Gamespot uses.example:[URL]Anyone know how to make one like that?
View 8 Replies View RelatedI wrote this a long time ago and it seems to get posted in the forums quite a bit so I figured I post it here for easy reference:
<script language="Javascript" type="text/javascript">
<!--//
function imageView(imgFile,imgTitle,imgWidth,imgHeight,winPosX,winPosY){
preview = window.open("","","resizable=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,width="+imgWidth+",height="+imgHeight+",left="+winPosX+",top="+winPosY+"");
preview.document.write('<html><head><title>'+imgTitle+' - Click to close - </title></head>'
+'<body onBlur="self.focus();" marginWidth="0" marginHeight="0" topmargin="0" leftmargin="0">'
+'<center>'
+'<a href="java script:self.close()">'
+'<img border="0" alt="Image loading please wait...." src="'+imgFile+'" width="'+imgWidth+'" height="'+imgHeight+'">'
+'</a></center>'
+'</body></html>');
preview.document.close();
}
//-->
</script>
<!--// Parameter list as follows:
Image File
Title of Image
Width of Image
Height of Image
Window Position X coordinate
Window Position Y coordinate
//-->
Example of use:
<a href="javascript:imageView('images/australia08.jpg','Australian Limestone Desert',427,277,50,50)">
<img src="images/australia08thumb.jpg" width="84" height="55" border="0" alt="Click for larger image"></a>
If you want to use this download the attached text file instead of copying and pasting from the screen here. The forum keeps putting spaces in the coding when copying and pasting causing the script to have an error.
I'm looking around for an AJAX type control that can take image versions of documents and display and manipulate them within a page and preferably degrade gracefully when Javascript is switched off. The sort of thing I'm looking for is similar to the flashpaper viewer, except not in flash.
View 4 Replies View RelatedI've got the following simple image viewer code which works fine on Safari and IE, but doesn't quite work on Firefox. On Firefox, it shows just the first image, but doesn't change images when I click on the prev and next buttons.
<script type="text/javascript" <br />
function changeImage()
{
[code]....
Im after a "lightbox style" image viewer that I can put on my site. However, I dont want the popup functionality, I just want the ability to show an image, and when I hover over than image, see buttons for next previous image.
Is there an existing script that can do this? I dont want to go down the flash route with this.
I am using the Overlap Image Viewer in which case has worked out perfectly except for one small thing, it pops up very quickly.
View 6 Replies View RelatedI haven't used jQuery before (don't know JS either), but am building a site with a slideshow image viewer "Cross slide" [URL] and it seems simple enough for a newbie.
I have the files for the plugin, jquery.min.js. and jquery.cross-slide.min.js inside my root folder. I think i'm doing everything right but am getting error messages in the FF error console:
Error: jQuery is not defined (this is associated with the closing bracket and parentheses in blue below) Error: $ is not defined
Also, about my images: Is the script currently written to know to look in my "images" folder for them or do I need to change something? i.e. { src: 'images/home_image1.jpg' },
[Code]...
I want to make an Twitter like AJAX post viewer like if we click on any link, it opens in a new sliding div like Twitter's.
View 1 Replies View RelatedI was wondering if anyone has figured out a near-perfect way to check if the client has all the elements fully loaded? Not talking about all the css and text loading and the event triggers while the client is viewing images load: I mean the event auto-triggers after all the images are fully loaded, along with the css, text content, etc.
(P.S. Not talking about AJAX. Literally when somebody visits a page itself, the elements all completely load first, then the event fires.)
My client currently has a Flash book reader on his site that provides a UI for reading a book.Each page of the book is a GIF, and there are hundreds of books available.Now, my client would like to change this reader, and I've convinced him to let me rebuild the reader in jQuery.The hiccup is that, for copyright reasons, the images of the pages in the book must not be downloadable or accessible in the source code.(In other words, there shouldn't be a way to steal the book other than taking a screenshot of every page.)I want the reader to be powered by jQuery, it is, by definition, in-browser.
View 9 Replies View Relatedhave 4 tabs which are loaded via AJAX, 3 of them from external html files. Within these tabs I have a number of images in a gallery.When the page is loaded initially, the Fancybox works fine, but when I click on another tab, ie pull in external content, and click on an image it loads in another window.Seems like the new content pulled isnt hooked up to the Fancybox trigger..in right direction.The code is detailed below, I need some kind of call on the AJAX to trigger FB???
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[code]....
I have been trying to run two Javascripts within the same page. The first is the Drop down menu Javascript, the second is the Picture Viewer (Click an image and it opens) Here is a copy of the webpage (the active version has been modified to reduce confusion for users) [URL] I have tried a noconflict, but it didn't seem to work. As you can see, the Picture viewer works fine, but the drop down menu seems to be in conflict.
View 16 Replies View RelatedI'm new to Javascript but not new to programming.
I find JS more time consuming because I have to manually search line by line for a single error. In C++ or C the compiler tells me the exact line number of the error or at least what the error is so I can research it.
With JS, notepad or Firefox's source viewer doesn't indicate anything. Is there any software available that will error check JS codes?
I want to create a interactive map viewer likeGooglemaps using my own custom map image. On clicking a location on the map, a small popup displayed showing some data. I aslo want a zooming and panning functionality. note that i am using aLinuxserver. The application must not use flash.
View 1 Replies View RelatedI'm using the following code
$(".photo img").click(function(){
var title = $(this).attr("title");
$("#display").attr({src:"photo/"+title+".jpg"});});
$("#display").css({"marginTop":"-233px"});
[Code]....
When the page first loads, something goes wrong and your first attempt at viewing any thumbnail always comes up with a blank missing image - but from that point onwards, any subsequent attempts work as intended.
I created a page with a thumbnail viewer. Click on a thumbnail and a larger version appears on the same page, NOT a pop up or Lightbox. It previews and validates fine. Even runs in IE. But not in FF(V. 3.6.18). Ideas? Code below with JS highlighted.
[Code]...
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?