This is a discussion on "dual random image genetator...tricky" within the JavaScript Forum section. This forum, and the thread "dual random image genetator...tricky are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
dual random image genetator...tricky
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
dual random image genetator...tricky
I need a script that makes a random backround for a single cell. but the tricky part is that i need it to do it for two different cells,,,not load the same image but a similar image. example...if the first cell loads a turtle i need the second cell to load a predetermined image of a another turtls turtle.
|
|
|
|
||||
|
Re: dual random image genetator...tricky
If these table cells will be the only two, you could simply add ID's to them and modify their background image.. Your script would look like
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: dual random image genetator...tricky
This is what i have.....it seems like this would work..i dunno., i dont know javascript though
|
|
||||
|
Re: dual random image genetator...tricky
You need to get the ID's though. Try this
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: dual random image genetator...tricky
still no go...
updated code
are the id's right |
|
||||
|
Re: dual random image genetator...tricky
I can't see where you're actually calling the function which would be why nothing is happening.
adding <script type="text/javascript"> printImage(); </script> Just after your main table.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: dual random image genetator...tricky
i did that and it still wont show.
|
|
||||
|
Re: dual random image genetator...tricky
Hmmm. puzzling. Let's go back to basics and declare all variables and add abit more oomph so we don't clash with reserved words.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: dual random image genetator...tricky
still no go
updates html
there would be no conflict with css correct. |
|
|||
|
Re: dual random image genetator...tricky
whe run in ie there is an error "invalid argument".....line 29....but nothing in firefox
|
|
||||
|
Re: dual random image genetator...tricky
does ff add images correctly?
the only thing i can see that would cause the ie error could be the mat.ceil but it looks fine I'm not being much help wid this one,, lol
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: dual random image genetator...tricky
i think it was because the variable name did not match in the statement..... "Image" instead of "Img"...i changed it but still no go. I dont know what the problem can be. Can this even be done with an individual cell?
|
|
||||
|
Re: dual random image genetator...tricky
It really should be working - **Rakuli bangs head on keyboad**
My last suggestion would be to fill the table cells with a div <div style="width: 100%;height:200px" id="tableCell1">
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Last edited by Rakuli; Sep 4th, 2007 at 11:32. Reason: Fixed some dodgy code |
|
|||
|
Re: dual random image genetator...tricky
no that doesn't do it either. if you say it should be working i trust you....do you have anyone you can ask....should i repost a thread?
|
|
||||
|
Re: dual random image genetator...tricky
If you image paths are correct this will work (FF & IE). Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Tags |
| image generator |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dual Earth | Dual Earth | Free Web Site Critique | 3 | Jul 2nd, 2007 08:08 |
| Dual Earth | Dual Earth | Free Web Site Critique | 0 | Jun 17th, 2007 15:43 |
| tricky floating problems for div alignment | escaflowne11 | Web Page Design | 4 | Dec 10th, 2006 08:03 |
| random opening image | berjoe | Flash & Multimedia Forum | 3 | Oct 11th, 2006 01:27 |
| perl tricky pattern matching | ktsirig | Other Programming Languages | 1 | May 14th, 2006 02:33 |