01.27.07
Posted in CMS, PHP, development, javascript, open source, webdev
at 01:26 am
Without noticing that similar activity is already going on, I’ve modified Quicktags module for Drupal 4.7 and rewrote it… restored back classic text buttons, just like we know them from Wordpress. Of course, it’s all based on quicktags by Alex King.
So, download my first version if you wish. It needs a lot of work to be seaworthy, but it’s enough for me (it’s working).
drupal, drupal 5, module, quicktags, non-wysiwyg, javascript
Permalink
10.11.06
Posted in javascript, money making, web
at 12:21 pm
So, not much to be said really. You add piece of javascript to the bottom of your page, and add some kind of link to some kind of great book about game design, like Raph Koster’s A Theory of Fun for Game Design
and you’re done. It’s just great. If not for selling products, at least for presenting them. It’s like linking weird words to wikipedia – I suppose not everyone knows what game design is, so why not let wikipedia explain them? And if someone doesn’t remember how does Nokia 6682 Phone
look like, they can just hover their mouses over the link and look at it without leaving current web page – which probably will be exceptionally useful for those who are scared (or just simply hate) when they’re redirected to some online store and think everyone’s trying to steal their credit card number. :)
Permalink
06.28.06
Posted in Opera, browsers, css, javascript, webdev
at 07:22 pm
Of course, I don’t mean to sound like Opera-hater, but as I’ve been learning how to manipulate CSS via JavaScript recently, I was shocked to find out that even quite recent Opera 8.5x doesn’t provide way to access CSS with standard, W3C’s DOM way (or even dumb, not standard-compliant way that IE uses). But, fortunately, this was fixed in Opera 9. I don’t know if I’m a technocrat or something, but with browsers and W3C standards, I find myself wandering “how the heck we could live without this new feature?” too often.
And BTW, here’s the code I used to show something hidden by CSS.
function showSomething() {
if (navigator.appName == "Microsoft Internet Explorer") {
//for dumbest browser ever, Internet Explorer
for (var x = 0; x < document.styleSheets[0].rules.length; x++) {
if (document.styleSheets[0].rules[x].selectorText==".classWeWantToShow") var n = x;
}
document.styleSheets[0].rules[n].style.display = "block";
} else {
//proper, standard-compliant way to do it:
for (var x = 0; x < document.styleSheets[0].cssRules.length; x++) {
if (document.styleSheets[0].cssRules[x].selectorText==".classWeWantToShow") var n = x;
}
document.styleSheets[0].cssRules[n].style.display = "block";
}
document.getElementById(’somethingWeWantToHide’).style.display = "none";
}
Permalink
11.10.05
Posted in javascript, webdev
at 05:26 pm
Nice article.
I’m currently listening to interview with Joel Spolsky, what interests me is the part about AJAX. I think I’m gonna love it. With FXweb having everything generated in XML, it is matter of half an hour (or less) to slightly modify the kernel and provide API for AJAX. C-O-O-L.
Oh, and if you have missed Joel’s article How Microsoft Lost the API War, you have missed a lot.
Permalink