Create A Page That Takes Data And Turns It Into Images?
Jan 3, 2010
I'm trying to create a page that takes data and turns it into images - I'm starting very simply. For each row of text, I first:
if(j.match(/[a-z]+_\d+/)){
colorval='red';
} else {
colorval='blue';
}
then I add a sequence of numbers for positioning to an object called pixs (with a numerical index as well that may or may not be useful):
var xpos = startwidth+d_num;
var ypos= startheight+d_scroll;
pixs[num]= {};
pixs[num]['xpos']=xpos;
pixs[num]['ypos']=ypos;
pixs[num]['color']=colorval;
As I loop through my arrays of little pieces of data, all of this information is stocked into pixs - BUT then- I have to insert this information from pixs to a function, like:
$(container).fillRect(xpos,ypos, width, height, {color: color}) where width and height are each preset vars.
My challenges here are to 1) successfully loop through the pixs object. 2)Use jquery if possible (or if easier) to get these variable values into the function to evaluate. 3) Successfully '.fillRect' with each loop. 4) Use the append method (or something?! again, I am a n00b) to get all of these instances of fillRect onto the container in the html document (which appears to be set up and working with instances of fillRect not using variables as parameters)
View 12 Replies
ADVERTISEMENT
Sep 24, 2010
I would like to create a page that has a dropdown menu populated with a list of images. When someone selects an image, the image and a URL to a webpage will display (screenshot below). Each image will have a different URL. How do I accomplish this?
View 9 Replies
View Related
Jan 13, 2009
A page I'm working on lets users open a new window, which in turn lets them send data back to the parent page to create new table rows, cells, links, etc. One of the links created is "delete", so it should delete the row that the delete link belongs to when clicked on. I can do this no problem in ff using the setAttribute('onclick',onClickEvent), but can't do this in IE. I'll show some code to make this easier to understand....
[Code]....
View 3 Replies
View Related
Mar 9, 2010
I prefer jQuery over flash and not sure how to tackle this, so please advise as best you can. Trying to create a site that allows for images to go full browser and then have the ability to have the other images slide in based on a click.
I also want to float a menu that will allow it to pull in other media (video, that would slide in the same way). The best example I can share is this: http://j.mp/5U79i1 What he is using is flash based (slideshowpro director and slideshow pro for flash). Not interested in flash for this personal project.
View 2 Replies
View Related
Sep 14, 2010
I have Javascript on my site and will not work at all if JS is disabled.How do I notify my users that the pull down menus use javascript and will not work unless they turn it on?
View 2 Replies
View Related
Jan 28, 2009
I'm using mootools to power the contact form on my site, and while everything works perfectly in Firefox and Safari, IE bugs out a bit on every other onBlur input event.To replicate the problem: Open the page in IE 6 or 7, click on one input followed by another, and then click anywhere else on the page. Once you have shifted focus off 2 inputs, the Submit button turns blue :/ The relevant part of the script (contact.js):
Code:
var inputs = $$('input', 'textarea');
inputs.each(function(element) {[code]....
View 1 Replies
View Related
Jan 16, 2010
[URL] The calendar shows, from left to right, Monday-Sunday. For each day, the date turns green from monday-saturday (for example, try to set your computer day to 15 January). However, no green color is there when the day is a Sunday (the absolute right part of the calendar).
View 8 Replies
View Related
Dec 16, 2011
I have files on the server: .txt, .xml, .config, and "no extension" - all editable with notepad.
User will write some input, it will be added to file in specific place.
I need an ability to change element value in file (in one of them - depends what user choose) (or it even can be some trigger word it-self like CHANGE_ME for not to use attributes)
Create a temporary copy of edited file and create a unique temporary link to it.
I don't know what to start from.... For now I know how to make XHR, but what to do with other extensions?
Have no idea how to save the NEW file (a copy of original file) on server , and create a UNIQUE link ,and delete the file right after it was downloaded.
I can find a specific word in xml file, but how to change it?[code]...
View 3 Replies
View Related
Oct 5, 2009
I need to refresh multiple images on my site. So every time the page gets refreshed the images need to change. It worked fine with the script below, but this is only related to 1 image
I tried to copy the script and change the "ID's" but this does not do the job.
What should I change/add to the script below?
In head:
In body:
View 7 Replies
View Related
Nov 14, 2011
By the time you read this I probably already tried to do this. But, is it possible to create an array with image sources? I'm thinking about doing this because it sounds a like a good plan to do since I'm trying to create a slide show. So is it possible to create array out of image sources, if no then why not?
View 9 Replies
View Related
May 5, 2006
I have one web-page and one picture box in the middle of page. I have some images in my SQL database, I want to load those images on picture box placed on my web page one by one. I want to display each image for 3 seconds and then next image, but these image are not fix, I will keep changing original image files in the images directory and will specify their names in database tables. Structure of database table is as follows:
pictureID pictureNameAndPath
1 images/picture1.gif
2 images/picture2.gif
3 images/picture3.gif
I just want from system to read this tables and display these pictures in the picture box placed on the page, using Javascript.
View 2 Replies
View Related
Feb 27, 2009
I have an image gallery on the top-left. It is the kind where you click on a thumbnail and a larger image shows up.What would I need to do to make it so it would show a loading image WHILE the picture is loading? (Especially for my over 60% of visitors who have dial up). Right now, if I click on an image, I have to wait a little while for it to load (I DO NOT WANT THE IMAGES TO PRELOAD)
View 1 Replies
View Related
Dec 30, 2010
I have a javascript that loads images on the page based on the date you select from a drop down menu. So the images are displayed dynamically, however they are numbered 1 through 20.Is there a way I can add a title tag to the images that will display on mouseover?Here's the page I am working on. I want to add title tags to the six images on the right side of the page. They change based on the date selected.
View 24 Replies
View Related
Nov 29, 2009
i would like to create a list of all images inside a specific div. It should be outputted as ul li list. The List should be clickable and on click i would like to be send to the position of the image on my site.
View 1 Replies
View Related
Aug 13, 2011
I have an example of what I'm trying to do at [url]
And all the files are available in a 7-zip at[url]
Basically it only works one time when I click next, and never when I click previous.
Here's my script:
View 2 Replies
View Related
Jul 19, 2011
Been looking around for 3 days now, I found exactly the style that I want, have images on my web site, all I need is for someone to show, explain to me how exactly this pagination or whatever it is works, how do i select which actual images from my site or where to be shown in the main window and also the thumbnails below?
as I said, I already know what kind of slide show I want, it's in this link the lower right version of slideshow with the pics of two horses and stuff: [URL] I already have the script on my site but but can't figure out how to place my images: [URL] and I want THUMBNAILS on the bottom like in the first link.... not the text
View 2 Replies
View Related
Nov 22, 2011
I want to create a gallery of images with a fancybox-esque style but incorporate the "folder functionality" that this site has: [URL] In other words: When I click on an image I want it to expand to "fullscreen". (This I can manage with fancybox.) What I can't work out how to do is display more images from the same photo-session at the bottom of the fullscreen.
View 1 Replies
View Related
Jul 8, 2010
Is there a way to create a div or some container in which there will be an image such that the image fills the container but retains its aspect ratio? So if the container is 100px x 100px and an image is 200px x 100px it will be resized to 100px x 50px. Conversely, if the image is 100px x 200px then it resizes to 50px x 100px. An image of 400px x 50px becomes 100px x 12.5px and so forth.
The issue is I have to dynamically build the container pulling images from an image folder. The images can come in all sizes. But I want to make sure they all fit in the same square 'box' without distorting the image.
There is text and a button below the image and I want them to stay in the same 'spot' on the screen without being moved around because the height or width of the image above it grows/shrinks to accommodate a change in either the height or width. These can change but not outside a controlled 'box'.
Maybe there's a way to get the actual size (through Javascript or something) then calculate a percentage to resize the image to?
View 4 Replies
View Related
Oct 25, 2010
i've being trying to change the src of a img tag in order to create some kind of a sequence of images.
Code:
<script type="text/javascript">
var i=0;
[code]....
View 6 Replies
View Related
Jul 22, 2011
I am writing a small data entry screen that will post the form data to a page and return a message. But i cannot get the Success or Error functions working properly.
Here's the code where strData is the posted querystring of:
I'm not sure whether it should be in a form and using the onsubmit or click of a button.
View 2 Replies
View Related
Jun 11, 2004
If the XML contain over hundreds+ nodes and text, is it even remotely possibleable to do the code?
Tried look for it on the internet on all i got is script that manuel write the nodes and text out line by line , that cant be good for the person who need to write over hundred plus data from xml ...
View 1 Replies
View Related
Sep 20, 2011
I wanted to start my research on the topic of slideshows here and ask if anyone knows what's the best method for creating a slideshow that should have the ability to display images and videos (and bookmark them)? It can be a plug-in, but this is for a client so it has to be okay for commercial use (and free).It should also be able to support other content like ads and polls/questionaires, in the form of a div. Also HTML 5 compatible with all the cross-browser compatibility one would expect.
View 4 Replies
View Related
Dec 26, 2010
I'm not very experienced with jQuery yet and after a while of trying and searching I decided to ask for help here:
I'm using jCarousel Lite, the "Custom Widget" scenario (click in the list on the left)[url]
When clicking on a image in the carousel, the larger image is shown immedeately. I'm trying to achieve a fadeout, fadein effect. Doesn't need to be a crossfade, a fade out to white, fade in from white is fine.
My 'bare' code (this works, with instant showing of pictures, without any fades)[code]...
View 1 Replies
View Related
Mar 1, 2011
I'm using Jquery to create a rollover effect on 2 images (placed on top of each other) to fade the bottom image in on a mouseover and out on a mouse out. Clicking the faded in image also opens a fancybox gallery. The problem is that sometimes the animation (the fade in and out) gets stuck after closing the fancybox window and the mouseover doesn't work anymore.
Here's my code for the mouseover:
View 4 Replies
View Related
Feb 10, 2010
I'm trying to update a table based on the results of a database query returned via JSON. My goal is to show the progress of a queue, removing entries that have completed. Firstly I need to populate a table with the results of the JSON. I have:
[Code]...
View 18 Replies
View Related
Aug 18, 2011
I would like to create a table using static data. This is not a updatable data table, or anything fancy. I am must wanting to replace a table crated with <table> tags with some sort of DHTML div tags so that I can do more with the table.
View 2 Replies
View Related