Community Page
- www.naterkane.com/blog/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Hey, that's cool. There are a couple apps I'd really like to throttle.
- Thank you for this, have been looking for one of these for ages, would have thought that Adobe would have included one as standard! thanks again!
- if I recall, there is a dynamic field in the PDF that I populated with some fairly simple javascript. if you download the PDF, it should be in there, and editable, for you to take a look. i do...
- Ditto - How do you change the date?
- can you please post your code for background based HTML ? as i have tried your code, place transparent.gif file but it didnt work. please reply me on my mail-id so i can show you my code also.
Jump to original thread »
A couple years ago Drew McLellan created his version of Youngpupââ¬â¢s Sleight script for enabling PNG transparency in Internet Explorer. It's a handy little thing, it's called bgsleight.js and I found myself using it for a recent project that required a decent amount of tra
... Continue reading »
2 years ago
i have a png on my page but it doesn't appear at the bottom when using the code in your copy of bgsleight
I can't figure out what to do with isbottom in order to make the image appear at the bottom if its meant to
2 years ago
the function that i put together to fix the bottom positioned bg images is this.
[js]
function fixBoxes(){
var boxes = document.getElementsByClassName("box-wrapper");
for (var i = 0; i < boxes.length; i++){
var boxBottom = document.createElement("div");
var src = boxes[i].currentStyle.backgroundImage.substring(5,boxes[i].currentStyle.backgroundImage.length - 2);
boxBottom.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
boxBottom.className = "box-bottom";
boxes[i].style.backgroundImage = "none";
boxes[i].appendChild(boxBottom);
}
fnLoadPngs(); // now let's fix the pngs.
}
[/js]
and it's called like so..
[js]
//...
return {
init: function() {
if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
if (document.getElementsByClassName("box-wrapper")){ // check to see if we have any 'boxes' on the page
addLoadEvent(fixBoxes);
} else {
addLoadEvent(fnLoadPngs);
}
}
}
}
}();
bgsleight.init();
[/js]
2 years ago
2 years ago
http://www.pinstripepresentations.com/index.php
Any help would be appreciated if you can spare the time. thank you very much.
2 years ago
I was using an old version of sleight+sleightbg, but I have a big problem with png background in DIV (the picture is scaled, so your script seems to be the solution, but, what are these pictures : "x.gif and "../images/blank.gif" ?
Thans a lot
1 year ago
I'm eager to try out your png fix - i'm not a coder, so bear with me: the link back to the instructions on Youngpup’s site doesn't work - he seems to have removed the archived post? so now there doesn't seem to be any instructions?
i've linked the .js file to my page, placed an x.gif in the root, and added a "blank.gif" in root as you've noted. (and in both cases corrected the urls in the js file to match.
no luck!
any thoughts?
thanks,
paul
1 year ago
Thanks!
1 year ago
wedding.kedinger.com
Thanks,
Daniel Kedinger
1 year ago
In regards to Daniel Kedinger's comment, wondering how to fix the unclickable links, try putting position:relative on the links that are unclickable, and it should work.
Thanks Nater!
1 year ago
1 year ago
1 year ago
I’m sorry for little off-topic, but I want to ask you about design of this site.
Did you make this template yourself or got from any templates website?
Looks pretty cool for me. Wonderful well this reading.
1 year ago
I use the superslight all the time but am sick of the limitations to be honest.
1 year ago
1 year ago
The object that the filter is applied to must have layout before the filter effect will display. You can give the object layout by setting the height or width property, setting the position property to absolute, setting the writingMode property to tb-rl, or setting the contentEditable property to true.
Take from: http://msdn.microsoft.com/en-us/library/ms53296...
2 months ago
as i have tried your code, place transparent.gif file but it didnt work.
please reply me on my mail-id so i can show you my code also.