SydLexia.com Forum Index
"Stay awhile. Stay... FOREVER!"

  [Edit Profile]  [Search]  [Memberlist]  [Usergroups]  [FAQ]  [Register]
[Who's Online]  [Log in to check your private messages]  [Log in]
Web coding help.


Reply to topic
Author Message
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
PostPosted: Jul 24 2010 08:09 pm Reply with quote Back to top

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.
View user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
FNJ
2010 SLF Tag Champ
Joined: Jun 07 2006
PostPosted: Jul 25 2010 08:51 am Reply with quote Back to top

I just read your signature finally, and it gave me a good laugh.

Off topic, maybe. Amusing as fuck? Yes.


Image
 
View user's profileSend private message
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
PostPosted: Jul 25 2010 11:50 am Reply with quote Back to top

Is this a trick?

24 images in a 5x5 square?



 
View user's profileSend private messageVisit poster's website
Valdronius
Moderator
Title: SydLexia COO
Joined: Aug 22 2005
Location: The Great White North
PostPosted: Jul 25 2010 12:07 pm Reply with quote Back to top

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.

 
View user's profileSend private messageVisit poster's website
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
PostPosted: Jul 25 2010 12:29 pm Reply with quote Back to top

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.



 
View user's profileSend private messageVisit poster's website
Blackout
Title: Captain Oblivious
Joined: Sep 01 2007
Location: That Rainy State
PostPosted: Jul 25 2010 01:25 pm Reply with quote Back to top

Didn't feel like starting a whole new thread.

Is anyone else annoyed with the new google image search? When did they change that?



 
View user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
PostPosted: Jul 25 2010 01:56 pm Reply with quote Back to top

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.
View user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
FNJ
2010 SLF Tag Champ
Joined: Jun 07 2006
PostPosted: Jul 25 2010 02:11 pm Reply with quote Back to top

On a similar note, I have a funny idea for forum monopoly. I can't wait to get my computer back.


Image
 
View user's profileSend private message
Drew Linky
Wizard
Joined: Jun 12 2009
PostPosted: Jul 25 2010 08:00 pm Reply with quote Back to top

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.
 
View user's profileSend private messageSend e-mail
LordHuffnPuff
Title: Mahna Mahna
Joined: Jan 12 2009
Location: Fairyland
PostPosted: Jul 26 2010 10:42 pm Reply with quote Back to top

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.
 
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
FNJ
2010 SLF Tag Champ
Joined: Jun 07 2006
PostPosted: Jul 27 2010 12:47 am Reply with quote Back to top

What exactly is the problem with the new GIS. I'm on an iPod and don't see it.


Image
 
View user's profileSend private message
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
PostPosted: Jul 27 2010 08:10 am Reply with quote Back to top

The new GIS is too cold and compressed. I prefer hot GIS, and it should be everywhere.
View user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Display posts from previous:      
Reply to topic

 
 Jump to: