| Author |
Message |
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
Posts: 24886
|
I need a webpage code that will take 24 images from a directory containing at least 24 images and display them in random order - without repeats - in 5x5 image square. The middle square in the grid will be stagnant.
|
|
|
     |
|
FNJ
2010 SLF Tag Champ
Joined: Jun 07 2006
Posts: 12294
|
I just read your signature finally, and it gave me a good laugh.
Off topic, maybe. Amusing as fuck? Yes.
|
|
|
  |
|
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
Posts: 11244
|
Is this a trick?
24 images in a 5x5 square?
|
|
|
   |
|
Valdronius
Moderator
Title: SydLexia COO
Joined: Aug 22 2005
Location: The Great White North
Posts: 4465
|
Dear GPF,
Please finish reading Syd's post.
Vald
|

| Klimbatize wrote: |
| A Hispanic dude living in Arizona knows a lot of Latinas? That's fucking odd. |
|
|
   |
|
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
Posts: 11244
|
| Valdronius wrote: |
Dear GPF,
Please finish reading Syd's post.
Vald |
Thank you... not sure how I missed it, but I totally did.
With that said, I don't know enough PHP to do the directory browsing. The rest of it wouldn't be that hard, but honestly I'm not a full time programmer, so my solution would be bulky and ugly at best.
Is Tyop still around? He might be more able to do something like that.
|
|
|
   |
|
Blackout
Title: Captain Oblivious
Joined: Sep 01 2007
Location: That Rainy State
Posts: 10376
|
Didn't feel like starting a whole new thread.
Is anyone else annoyed with the new google image search? When did they change that?
|
|
|
     |
|
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
Posts: 24886
|
I am! I believe they did it last week.
As for original topic, what I want to do is make a bingo board genrator. Specifically, Kris Lexia bingo. She has, at most, 40 different things she ever says. 20 of them involve creepypasta and fanfic.
|
|
|
     |
|
FNJ
2010 SLF Tag Champ
Joined: Jun 07 2006
Posts: 12294
|
On a similar note, I have a funny idea for forum monopoly. I can't wait to get my computer back.
|
|
|
  |
|
Drew Linky
Wizard
Joined: Jun 12 2009
Posts: 4209
|
| FNJ wrote: |
| On a similar note, I have a funny idea for forum monopoly. I can't wait to get my computer back. |
I see fun times ahead.
|
https://discord.gg/homestuck is where you can find me literally 99% of the time. Stop on by if you feel like it, we're a nice crowd. |
|
   |
|
LordHuffnPuff
Title: Mahna Mahna
Joined: Jan 12 2009
Location: Fairyland
Posts: 571
|
| Blackout wrote: |
Didn't feel like starting a whole new thread.
Is anyone else annoyed with the new google image search? When did they change that? |
Do you use firefox? If so here's a greasemonkey script that forces it to use the old version.
http://userscripts.org/scripts/show/48293
raw code:
| Code: |
// ==UserScript==
// @name Google Images direct links
// @author Dwoo
// @version 2010-07-23
// @namespace http://userscripts.org/scripts/show/48293
// @description Redirects to "basic version" of Google Images and skips landing page for images not in the browser history.
// @include http://images.google.*/*
// @include http://www.google.*/images?*
// @include http://*.google.*/imgres?imgurl=*
// ==/UserScript==
(function () {
if ((/q=/).test(document.location.href)) {
if (!(/&sout=1/).test(document.location.href)) {
window.location = window.location + "&sout=1";
}
}
function evalNodes(path) {
return document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
}
var cont = evalNodes('//div[starts-with(@id, "ImgCont")]').snapshotItem(0);
function addLinks() {
var imgs = evalNodes('//a[starts-with(@href, "/imgres")]');
var links = evalNodes('//td[starts-with(@id, "tDataText")]//div[@class="a"] | //td/font/font[@color="green"]');
var image, link, urls, a;
for (var i = 0; image = imgs.snapshotItem(i), link = links.snapshotItem(i); i++) {
urls = image.href.match(/imgurl=(.*)&imgrefurl=(.*)&usg/);
image.href = decodeURIComponent(urls[1]);
a = document.createElement('a');
a.innerHTML = link.innerHTML;
a.setAttribute('class', "a");
a.setAttribute('style', "border-style: none");
a.setAttribute('href', decodeURIComponent(urls[2]));
link.parentNode.replaceChild(a, link);
}
cont.addEventListener('DOMNodeInserted', trigger, false);
}
function trigger() {
cont.removeEventListener('DOMNodeInserted', trigger, false);
setTimeout(addLinks, 100);
}
if (cont) {
addLinks();
} else {
var style = '#thumbnail:visited, .il_ul>li>a:visited{color:red !important}';
if (typeof GM_addStyle == "function") {
GM_addStyle(style);
} else {
evalNodes('//head/style').snapshotItem(0).appendChild(document.createTextNode(style));
}
var link = document.getElementById('thumbnail');
if (!link) {
link = evalNodes('//ul[@class="il_ul"]/li/a').snapshotItem(0);
if (!link) {
return;
}
}
var color = document.defaultView.getComputedStyle(link, null).getPropertyValue('color');
if (!(color == "rgb(255, 0, 0)" || color == "#ff0000")) {
window.location = link.href;
}
}
})()
|
...man I wish we had spoiler tags.
|
 More information may be found here. |
|
      |
|
FNJ
2010 SLF Tag Champ
Joined: Jun 07 2006
Posts: 12294
|
What exactly is the problem with the new GIS. I'm on an iPod and don't see it.
|
|
|
  |
|
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
Posts: 24886
|
The new GIS is too cold and compressed. I prefer hot GIS, and it should be everywhere.
|
|
|
     |
|
|
|