Use The Slimbox To Create A Small Lightbox (such As 5x5 Pixels)?
Sep 10, 2009how can I use the slimbox [URL] to create a really small lightbox (such as 5x5 pixels), instead of the usual large lightbox?
View 1 Replieshow can I use the slimbox [URL] to create a really small lightbox (such as 5x5 pixels), instead of the usual large lightbox?
View 1 RepliesI have the following code:
<style type="text/css">
#toggle {width: 100px; height: 100px}
</style>
[code]....
I'm trying to create a small function to expand a textarea when they hit a certain amount of characters.
My textarea is at a certain width and it takes 39 characters to hit the end. At 39 characters I would like the textarea to expand an additional row.
This is what I created:
Code JavaScript:
function boxGrow(control) {
var len = control.value.length;
if (len > 39) {
[Code]....
The problem is that after I hit 39 it keeps expanding by 1 row every extra character even though I set "len" back to zero.
I've been trying to create a small input box that changes the form action based upon what the user enters. I can get these two options to work:
1. If value IS NOT 123456code, then action should be search-results.html.
$("form.filterform").keyup(function(){
if($("input.searchbox_resources").val()!="123456code"){
$("form.filterform").attr("action","search-results.html");
}
});
2. If value IS 123456code, then action should be search-results.html.
$("form.filterform").keyup(function(){
if($("input.searchbox_resources").val()==="123456code"){
$("form.filterform").attr("action","error.html");
}
});
I want to replace option 2 with a variation... where the user gets the error.html page if what they typed contains 123456code. As it stands currently, option 2 requires that a person types in that code exactly with no differences at all.
I was thinking it should look like this:
$("form.filterform").keyup(function(){
if($("input.searchbox_resources").val()*="123456code"){
$("form.filterform").attr("action","error.html");
}
});
But that does not seem to work.
Re-create this Apple lightbox effect.
View 12 Replies View RelatedI wanted to create a small DHTML code that created a unordered list of input forms dependent on the number selected from the select dropdown menu. Problem is that it doesn't seem to want to generate the list. I think the variables are within the scope of the function too, and I didn't get an errors from the javascript console when using firebug. The script itself runs, I tested it when I used the old standby alert(); to see if the script was active. Here's the code:
[Code]...
I have a conflict between Mootools (Slimbox) and jQuery (easyListSplitter). I can't get them to work together. I was reading about jQuery.noConflict();, but I find it quite complicated to implement.
View 2 Replies View RelatedHow do I create a Contact form which appears in a lightbox style window?Is this possible? I'm looking to have it pop up infront of the current window and can then be faded out like the lightbox animation.
View 1 Replies View RelatedI have a site in development using Joomla and Virtuemart. Virtuemart uses slimbox lightbox for product displays but this stops working when the Camp26 FishEye Menu is plugged in. I finally tracked it down to a jquery conflict due to them sharing $ but the fix is beyond me.
Can anyone point to a step by step solution, I've been unable to find one, or maybe spell it out for me?
I have to following jquery lightbox code:
<script type="text/javascript">
$(function() {$('#largerview a').lightBox({
fixedNavigation:true,
[code]....
I currently have a slideshow working on my client's site, but I can't get lightbox to work properly on it. [URL]...
Is there a way to fix the existing slideshow to work with lightbox? Or is there another way of doing this (keeping the same look that is currently in place)?
Is there a recommended way to tell how many pixels are in 1em, or otherwise gauge how big the text is (when the user may have specified a larger font-size in browser preferences for easier reading)?
View 2 Replies View Relatedwindow.getComputedStyle() is no good in MSIE. Is there a way to determine
the pixel size of the default (or user-specified) font for BODY in IE?
My site has links in it with hash tags so people can share information externally, and when the link is clicked on my page loads already scrolled down on the correct div. ex. http:[url]....My issue is the top of the div is aligned exactly on the top of the text in div123. Since the browser automatically scrolls there, is there a way to make the page scroll up by 20 pixels just to make it look nicer?
View 1 Replies View RelatedI have a form field where I let the user enter desired width for a table. The field should allow values in percentage or in pixels only. A JS check should allow the user to enter valid values like ྌ%' or 魐' only. Other illegal values like '%80', 'blah' or ྖpx' should not be allowed.
View 1 Replies View RelatedI know this is a known issue but I have had no luck with finding a fix for the issue I am getting with IE8. I get a nasty black border around my png that I am using the Jquery fade function. Does anyone have any useful hacks/tricks to fix this?
View 2 Replies View RelatedWhy is it bad to use pixels to specify font size. If people think its too small/too big, they can Ctrl + and Ctrl - in their browser even in IE. is there another reason why its a bad idea to use pxs?
View 11 Replies View RelatedI am trying to get the current height of an iframe in pixels. The code below will display the height as a percentage but thats not what I need. Is there a way to determined the iframe's current height in pixels even though I specify "height:52%"?
Code:
<iframe id="threats" style="height:52%; width:100%;" src="threats.htm" scrolling="no" frameborder="1"></iframe>
[code]....
If I have an image upload box on my page and I wanted to check the image either after selected or before the form is submitted to import it, is there a line or command I can use to return the size in pixels(width*height)...
I've seen it done and I'm assuming jscript has something to offer here but my googling has come up a bit short so I'm not too sure where to begin..
I seem to be having trouble with the following function:
Code:
function getReferenceCoordinates(el)
{
var x=0;
var y=0;
if(el.offsetParent) {
while(el) {
[Code]....
It works okay, but in ie the pixels are off by 2px. Anyone know why?
I just learned that firefox (v 1.5.0.3) chops any content of an iframe
that exeeds 2^15 (=32768) pixels i.e. in height? Any idea what went
wrong or is this a bug/feature?
I am using this code:
<iframe src="kibo.html" style="width:400px;height:32778px;"></iframe>
When I am trying to fade images using either .fadeto or .fadeIn/Out, I get dead pixels. This happens on both IE7 and IE8. I tried looking around for a solution, but nothing works. Here is a link to an example: click here (Don't forget to use IE.
View 10 Replies View RelatedI have an img of a map of Europe in a div. I want to plot routes between cities in Europe as dotted lines. The image is scrollable and I want the routes to scroll with the image. So the routes should be attached to the image. Furthermore, when drawing routes outside of the viewable area, the routes should be clipped so they don't show up outside of the image. but when the image is scrolled, the routes should appear.
Here's a link to the dev site: [url]
Here is my code:
CSS:
HTML
FBJS (Facebook JS)
I am trying to customize this scrollbar so that it will fit all screen resolutions and I was wondering how I could do this by somehow customizing the JavaScript files created by Nathan Faubion or if I could do this using other JavaScript variables (var widthPercentage) to change the pixels to percentages?One of the pages on the website I'm using the JavaScript on
JavaScript file jsScroller.js:
//Created by Nathan Faubion http://www.n-son.com/scripts/jsScrolling/
function jsScroller (o, w, h) {
[code]....
I get this weird bug on firefox 3.5 and chrome. And strangely IE8 has no problem with it, which is why i think its a JS error. When I got to my site [URL], I get this error for some reason my blogs content moves a few pixles forward. and when i Refresh the page it goes back to normal
View 1 Replies View RelatedI have a div that appears directly below a text box. When the user clicks on an item in the div, i place it in the textbox. I want the width of both the textbox and the div to be that of the largest item in the div.
However, setting the textbox to have the same width of the div will not show all the characters of the selected text. I assume this is because of differences between pixel width and the input size property.