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
ADVERTISEMENT
Jun 7, 2011
I started studying javascript when I decided that I wanted to create a dynamic webpage after viewing some books that were made to pageflip with Javascript and after viewing a ton of animations. So I figured since everyone keeps saying Javascript is simple that if all I wanted to do was to make a book extend outwards on mouseover and then open up on click and flip pages which they already have a code for that it wouldn't be so difficult. I've read everything I could practiced a little bit, I'm not fluent but I do have a goal and a time. The problem for me comes up with figuring out what I need to do in order to make it appear as if the book is coming out of a book shelf. There is a lot of information on animations where flat objects rise above clouds.
I am thinking that I would have to use some sort of sprite of a row of books both sorta sideways where you can see the side of the book as well as the edge, and both a row of books on a shelf, or perhaps a row of books with some of the books being pulled out and then on mouse over animate the scene so that it looks like the book is being pulled out. Would that work? Or is there a simpler way? Another way or I don't know. Is there a code that can make it look like a book is extending outwards without an animation or would I need to create an animation for that?
View 3 Replies
View Related
Jun 7, 2011
I have a background that is a shelf full of books, I wanted to figure out what I would need to do in order to make a random number of books pop out on mouse over (individually), and upon click have the book pulled out and be flipped through and read like a book. Would I have to recreate the library picture completely to make the random books moveable? And would I have to create the books that I want to move from the bookshelf?
how to pull the book out from the book shelf so that it looks like it's coming towards me and then to make it look like it has been pulled out. Would I need to use animation for this? What would be the parts to the animation required?
A little background on my knowledge of javascript: I understand the concepts of it and can understand it when I read it or its explained to me. I am looking to create something as simple as I can, I thought having a background and something basic like a few books be able to pop out. When I realized css couldn't do this and css3 wasn't supported by most browsers I turned to javascript and have been trying to figure out the steps I would need to do to do this specifically.
View 2 Replies
View Related
Apr 8, 2010
I am using GreaseMonkey to load jQuery 1.3.2 (there is a bug with the latest version of jquery and GM) and jQuery UI 1.8.0.I am using jQuery via GM to manipulate the GUI of a content management system. This CMS uses its own JS library to dynamically add stuff to the dom.
Question:How can I target a dom element that was added to the dom via this other JS lib?In other words, the CMS will add a div to the dom, and I am not sure how to tell jquery to wait for these elements to "be there" before applying the jquery goodness. Specifically, I would like to do this:
$(function() {
$('#zen1227').resizable();
});
But "#zen1227" does not "appear" until later via this other JS library.
View 4 Replies
View Related
Sep 6, 2010
I have 10 image libraries and I want to see 2 pic at a time from each image library. I want to make a scroll option where I can see 1image from each library. Any advise on scrolling panel using jquery.
View 2 Replies
View Related
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
View Related
Jan 20, 2009
Where can I find a good Java Script writer? Preferably free and easy to manuver/manipulate.
View 8 Replies
View Related
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
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
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
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
Jun 10, 2010
I want to create Google Custom Search TextBox that has background image and image disappears on onmouseclick and appears back on onmouseout.
View 1 Replies
View Related
Apr 19, 2009
<img src="img/Timezones_optimized.png" width="956" height="396" usemap="#locationmap" alt="World Map" />
<map id="locationmap" name="locationmap">
<script type="text/javascript">
[Code]....
As you can see I am simply trying to get the javascript to write an area for the image map but I can't get it to display.
I know the code looks pointless but what I want to do eventually is use an array of locations to dynamically create the areas.
View 1 Replies
View Related
Sep 17, 2011
I have the following function to dynamically create an image (in this case a toolbox button):
Which works fine in IE8 and IE9, but in IE7 it refuses to pick up the style 'button'. I've even tried putting in btn.class='button' but JS throws up an error.
If I specify the style by btn.style.position='Absolute' it picks this up OK. However, it won't respond to the onclick event either.
I have heard that setAttribute is buggy with IE7, which is why I tried to specify each attribute directly.
The style sheet for class button is:
(BTW, no link to a website as this is local on my machine atm)
View 3 Replies
View Related
Feb 24, 2011
I need to create a mouseover image so when i hover my mouse over an image another image appears somewhere else on the webpage I do not want it to appear above the image hovered over like most code allows, i need a separate image to appear that is normally hidden.
View 5 Replies
View Related
Jul 12, 2009
I would like to know how to create such an effect using javascript. Example: This site (http://kreativity.ca/) , at the menu button (with the Home, About me,)
All i know how to do is using the mouseover effect, and then displaying an enlarged version of the image (thus creating a "drop down" effect). However, i do not know the code to make the image "drop down" gradually.
View 4 Replies
View Related
Apr 20, 2011
Id like to create a rotating content for my homepage, using 4 images, all of which id like to be hyperlinked to there pages.
View 7 Replies
View Related
Dec 29, 2005
How can i create an alternating banner image using javascript with each image has its own url target. and uses cookie to display.
View 2 Replies
View Related
Apr 26, 2006
If I create an image element using the DOM methods and assign it an onload event handler, at what point is the image actually loaded and the event handler run?
So, given the following and assuming that "parent" references a node already in the document:
var elm = document.createElement("img");
elm.src = "myuglyface.jpg" // #1
addEvent(elm, "load", myHandler, false); // the standard cross-browser event adding mechanism
parent.appendChild(elm); // #2
Does the loading of the image begin at #1 or #2, ie when I first reference it or when it is added to the document? Can I even add an event handler at the point I do so?
View 2 Replies
View Related
Jun 14, 2010
Dear all I'm trying to create an small image over an image once onclick inside a div but with no success and here is my code:
Code:
<html>
<head>
[code]....
View 2 Replies
View Related
Aug 21, 2010
How do i create an image scroller and a div that slides up like in the flash on the image thing on this site? http:[url].....
View 1 Replies
View Related
Mar 3, 2010
I'm trying to use an ajax function to load filenames into a text area. This works and is not the problem.Then I read the contents of the text file and create an array of file images. The images can be .jpg, .gif, etc. Again no problem.However, when I try to create new <img ...> elements with a 'createElement' function, I get major errors. I think the problem is in the 'AddImage()' function in the code below.
Code:
<html>
<head>
<title>Image Display</title>
[code]...
View 3 Replies
View Related
Jul 31, 2011
I'm new to jQuery, but I'm very excited to incorporate it into my project. I'm trying to re-create the following flash-based technique for an open-source medical student project, but I'm not sure how to begin: [URL]. The example is exactly what I am trying to achieve with jQuery. I have a fundoscopic image (image of the back part of the eye) and I want to put a dark overlay that covers the entire image except for a clear circular center, centered over the mouse cursor. The clear circular center should move with the mouse cursor (with some delay/smoothness). When the mouse cursor leaves the image space, the clear circular center should return to its initial position.
View 4 Replies
View Related
Jul 26, 2011
I want to place some background images behind my navigation links using JQuery. I have spent hours Googling the most promising solution which do not work : And when I apply these solutions to my own code I come up with: $('ul li :eq(0)').css('background', 'url(../images/home_icon.gi)');
View 2 Replies
View Related
May 5, 2011
How to create an image tile effect, does anyone know any way, or how it works?
View 13 Replies
View Related
Mar 2, 2009
Im trying to implement dynamic images on my site. Basically, there is a list box, and when the user selects an option, it calls a service that streams back a base64 encoded image that will be the preview of what they're looking at.in FF you can do this: img.src = "data:image/png;base64," + args ; This doesnt work for IE. from what ive learned, IE doesnt support this type of inline coding.
I was thinking that maybe the next best solution would be to convert the base64 back into binary, and set the new image object to that source. something like this:
Code:
var img = new image();
img.source = binarydata;
now obviously, img.source isnt a real method. but i would like to be ale to set the binary data as the image.
possiblities: Is there anyway to save that binary as a file on the client? and then be able to reference that file as the picture img.src = "images/" + newfilename;
Some other alternatives is to stream back a reference on the server to get the picture, this would require two callbacks, which i dont want.
Also, there is a method of turning the image into a big array of HTMl elements, and each element holds a color, being a pixel. im not doing that, that is the biggest hack job i have ever seen.
View 1 Replies
View Related