I wonder if some one could help me with an issue that I have with an image switcher.
I have 12 Images with a discription to each one. Now, the script is working, as it is now, but the background on the page is black and I am trying to change the font color to white (#FFFFFF).
I believe I have tried it all, and I can get the font color to be white on the working page (FrontPage), but I just can't get the white font to shine up in the preview browser.
Why I know that it is working? Well, I marked the text below the image in the preview browser and as I hover over the links, the marked text is actually changing synchron with the 12 images. Code:
I spent a lot of time finding code that would play an audio (.wav) file on a mouseover cue that would work in Internet Explorer 6 and FireFox without any user prompt to allow active-x scripts to be run etc, but unfortunately the code does not work in Internet Explorer 7. Can you suggest an alternative?
PROBLEM 2:
When using a image switching code to swap an image to a .gif anim that plays just once (created using Ulead Gif Animator 5), Internet Explorer 6 and FireFox begin the animation cycle only when the image has been switched. Unfortunately, Internet Explorer 7 seems to play the animation as soon as it has been loaded so when it’s switched you only see the last frame. Can you suggest an alternative? Code:
I am building a small store that sells T-Shirts, one t-shirt has 3 colours, so I wanted to display a colour swatch, and change the images that are displayed when the colour swatches are clicked.You can see the effect I mean on the following website by clicking on the colour swatch button: Daily Habits - EYE EYE CAPTAIN HOOD - KON Shop - King of Nothing.I have been hunting around for a tutorial on how to achieve this, but so far can't find one.
Is it possible to do something like this: On a site there is a link that says "Darken Page".Upon clicking the link, the background color turns black.The link then changes to "Brighten things up"So just a style sheet switcher, but with one link and changes
I've been applying a javascript based, user switch button to a site from this article: [URL] On [URL] (right top menu option).So far, it is working but the user selection is not persistent from page to page. I think it may have something to do with the onload and unload actions in the attached js file: [URL]
} window.onload = function(e) { var cookie = readCookie("style");
[code]....
I was wondering if these functions have to be in the header of every page instead of in a linked file, or if there is something else I'm missing...
So. I've been working on this stylesheet switcher for a school project, and basicly there are 3 layouts, "Standaard", "Zwart-wit" and "Printversie". What I want is that when you select one on (for example) the homepage, I want the other pages to apply the same stylesheet. I've been trying to do that with cookies, but it doesn't even work on one page.
PHP Code: function setup() { var current_style = read_cookie();
I have this style switcher which is awesome, therefore, the cookie does not seem to work, actually it simply doesn't.
<script type="text/javascript"> // *** TO BE CUSTOMISED *** var style_cookie_name = "style" ; var style_cookie_duration = 30 ; // *** END OF CUSTOMISABLE SECTION *** function switch_style ( css_title ){ // You may use this script on your site free of charge provided you do not remote this notice or the URL below. Script from [URL] .....
Is it possible to fade the transition between switching one CSS to another? I am currently using jquery style switcher to get the transition. I am also using prototype/ scriptaculous to make div fields appear and fade in a duration of 0.5, and would like to time the CSS transition to be in sync with the div transition. Please see link below to see the website that I am building and current CSS and div transition timings: [URL].
I am developing a site for a client that requires the printer friendly verison of the site to appear in a separate pop-up window. I am having trouble figuring out the scripting needed to have the current page open in a separate window with a different style sheet applied to it.
I am using the stylesheet switcher on dynamic drive . Is there a way to change stylesheets based on a querystring parameter? Basically, if the query string includes "&StyleSheet=BlueStyle" then call and set the BlueStyle.css and cookie on page load.
I am a jquery newbie and trying to make a template switcher function. Here is what I have so far: [URL]. If I click on "login page" or "member page" first, and then click on "Template 1" or "Template 2", it wont work. IE gave me "permission denied" js error. FF didn't give me error, but nothing happened. Is it because after we click on the login or member page, the DOM elements has changed, so it doesn't work?
Code: $(document).ready(function(){ var templateframe = $('#templateframe').contents(); noclick(); $("#templateselect li a").click(function() { var style = $(this).attr('rel'); templateframe.find('link').eq(0).attr("href", "styles/" + style + "/_css/main.css"); alert(templateframe.find('link').eq(0).attr("href")); return false; });
$("#pagenav li a").click(function() { var page = $(this).attr('rel'); $('#templateframe').attr("src", "template/" + page + ".html"); noclick(); return false; });
$('#applybtn').click(function(event) { var title = $('#sitetitle').val(); if(title.length > 0){ templateframe.find('.content h1').html(title); } event.preventDefault(); });
function noclick(){ $('#templateframe').load(function(){ //$('#templateframe').contents().find('.content h1').html('Hey, I've changed content of <body>! Yay!!!'); $('#templateframe').contents().find('a').click(function(event) { alert("Demo Only"); event.preventDefault(); });});}});
I want to have a big image and say 5 small thumbnails underneath. When the user clicks a thumbnail, the image loads where the previous big image was. Is there a standard way to do this?
i have image button i need to display image .if the size of the image button is 100*100 and image size is 50*50 .the remaining space of the image button should be empty.the image should not stretch.
Im trying to have a click event that replaces an image on the page with a new image that has been selected randomly from an array. I have solved PART of this already (can get the random image to appear).
However, instead of appearing on the page where the old image was, the new image appears in a blank page.
My research indicates that this blank page location-problem is a result of using document.write in the Function. Therefore, I know I need to find a different way to accomplish this, but am failing miserably.
I have been trying for hours and hours and HOURS to figure out proper syntax for accomplishing this via elements, functions, variables and mootools.
A bit of my research:
-I found this---but havent figured out how to implement it in my scenario:
Source: [url]
-I found this---but havent figured out how to implement it in my scenario:
I use an image button to post a form. Let's say the button is on A.php and form target is B.php. when clicked, B.php comes but with extra arguments in the url. As far as I understand they are the coordinates of the point I clicked on the button image.
I'm building a website with a image menu like accordion, using jquery+easing+kwicks [URL]ith CSS, I can change the opacity of the element hovered (the opened kwick), but I'm looking to someway to change the opacity of the inactive kwicks (the images that close when you open a hovered image).I tried to do it with css, or hacking kwicks plugin, but I couldn't make it.
I am building a simple t-shirt creator app for my shop and I am using the interface.js library: [URL].. docs/drag to drag/drop and re-size the graphic on the shirt background image.
Once the user has chosen a spot to put the graphic, how do I save the background image of the t-shirt with the image they dropped in the correct spot? Like, to merge the two graphics in place?
In one of my web page I want to show an image preloader. ie When I clicked on the small thumbnail in my web page then the main large image will load. My code looks something like this
$("#images li").click(function(){ var image=this.href; $("#mainImage").attr('src',image); });
I want to show the Loading sign until the main image loads completely.
Im trying to have a click event that replaces an image on the page with a new image that has been selected randomly from an array. I have solved PART of this already (can get the random image to appear).
However, instead of appearing on the page where the old image was, the new image appears in a blank page.
My research indicates that thisblank page location-problem is a result of using document.write in the Function. Therefore, I know I need to find a different way to accomplish this, but am failing miserably.
I have been trying for hours and hours and HOURS to figure out proper syntax for accomplishing this via elements, functions, variables and mootools.
A bit of my research:
I found this---but havent figured out how to implement it in my scenario:
I found this---but havent figured out how to implement it in my scenario:
The objective is to have an image fade to another one progressivly while the mouse is over, when its not it fades back to the original, whether or not it faded to the target completely or not. That is, if it takes 1 second to fade completely to the other image, and you take your mouse off it at 0.5 seconds, it will begin to fade back to the original. I have a problem where I want to give this ability to multiple images (thumbnails) on a page, without having reams and reams of code and instead just have one function accomadate any number of images.
I've been searching for a resolution to this issue for hours trying to customize my page located at [url]
Specifically, I'm trying to figure out why this line of code is not making my images display in the background:
Original plugin script provided here: [url]
<script>
I made adjustments with my image references that are all located in this directory: [url]
Problem: No images load, and I believe I don't fully understand the .appendTo tage.. I don't know if #body is correct. The author of the plugin assumed I understood the relation. Also #homePage may be incorrect as well.
Additionally, I found another plugin that worked for placing an image in the background (not random), and the background image would scale to size, according the users window. I loved that and it worked, just wanted to add random images to the same script.... first things first... I can't even get an image to display at all with the above code.
In case you wanted to know the script I was using to scale the background image, here it is below (although, as you will see in the code for my site - this image feature is disabled as I am trying to make adjustments).
code for image solutions used:
HTML
CSS
If I can get this second code to work with the random image plugin.
I've been trying to have an image be placed during a mouse over or mouse click event. The closest to accomplishing this is having the image be replaced by the image I want to overlay.
I am trying to incorporate Lightbox2's image gallery script into my site but I'm having difficulty.Here's where I'm accessing the script from: http:[url]....
The image thumbs are showing up but the larger images are not. I changed the 'body onload' html tag to window.onload as I'm using two different javascripts on this page and I don't want them to conflict.I've also added initLightbox() so I don't know what's wrong! Is there just an issue with the images or is there something wrong with the script.
<script type="text/javascript"> window.onload = function(){ // use this instead of <body onload …> MM_preloadImages(MM_preloadImages('../3websites/home4.jpg','../3websites/amenities1.jpg','../3websites/inquiry1.jpg','../3websites/rates1.jpg','../3websites/photos1.jpg'); initLightbox()") } </script>