|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
#11
|
|||
|
|||
|
Holy Cow, I have everything but the direction working:
http://www.coreyshead.com/beta/monstersandrobots.html (the only lightbox item, at this point, is a yellow, tentacled icon in the top row - but it works!) Strangely, the crawler script's "direction" parameter (direction: 'right', ('right' or 'left') ) doesn't seem to effect the direction of the script. I even tried it on a single string in a bare page but the crawl remained obstinate, heading off to the left no matter what. (I presently have the directions set to stagger the flow for the hell of it - if you tap the 2nd and fourth string on the left, you'll get the effect I am hoping for - disconcerting but I like it). If you have any ideas for the directional aspect, I'd be interested but, heck, I'm 90% home as it is so: Thanks for all your help! |
|
#12
|
||||
|
||||
|
Pretty cool. You've done a nice job.
In no particular order, three things: You've misunderstood direction. It is not a style, rather a distinct property of the crawler instance: Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '10px',
'width': '800px',
'height': '110px'
},
inc: 8, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 1,
neutral: 150,
Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '10px',
'width': '800px',
'height': '110px',
Second, this bit: Code:
<script type="text/javascript">
LightboxOptions.startCallback = function(){
for(var i = 0; i < ConveyorBelt.ar.length; ++i){
ConveyorBelt.ar[i].copyspeed = 0;
ConveyorBelt.ar[i].halt = true;
}
};
LightboxOptions.startCallbackType = 'afterUpdate';
LightboxOptions.endCallback = function(){
for(var i = 0; i < ConveyorBelt.ar.length; ++i){
ConveyorBelt.ar[i].copyspeed = ConveyorBelt.ar[i].speed;
ConveyorBelt.ar[i].halt = false;
if(ConveyorBelt.ar[i].stp){
ConveyorBelt.ar[i].mousereact.onmouseover();
}
}
};
Event.observe(window, 'load', function(){
for(var i = 0; i < ConveyorBelt.ar.length; ++i){
(function(mh, c){
document.observe('mousemove', function(e) {
var x = e.pointerX(), y = e.pointerY(), co = mh.cumulativeOffset(), gd = mh.getDimensions();
c.stp = false;
if(x > co.left && x < gd.width + co.left && y > co.top && y < gd.height + co.top){
c.stp = true;
}
});
})($(ConveyorBelt.ar[i].mouseholder), ConveyorBelt.ar[i]);
}
});
</script>
Third, there appear to be some errors on the page unrelated to the two above considerations, but I cannot be sure until you deal with the above.
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate |
|
#13
|
|||
|
|||
|
> the page is more fun with the monsters continuing to move underneath the overlay
I think it's about the worst form of image nav I've ever seen but the point is to be graphically interesting and, at the same time, sort of a carnival duck-shoot, if you know what I mean so, yeah, it is suiting my needs absolutely - and Thank You for helping me to realize such a boneheaded idea! > You've misunderstood direction Ah! I wondered about that but apparently never checked my suspicions. The instructions for the script made it seem like it most of the variables were styles. At least to a neophyte. =) Thank you. (I wonder what else I got wrong - I'll do some more pokin') > Second ... Doesn't do anything with crawler Hah! I wondered about that, too. After posting here I realized my drop-downs were no longer working on the page (here they do: http://www.coreyshead.com/beta/index.html ), so I did some script rearranging in the head and discovered that removing that chunk had no effect - neither good nor bad! Never realizing that it was for Conveyor, not Crawler! Duh ... In any case, it seems like the conflict is somewhere between Lightbox and the dropdowns as I can activate one or the other by putting the one I wish to work lower in the head stack. Now I've seen Lightbox work with these dropdowns so I'm left with the conclusion that a) I am, in fact, asking an awful lot, here or b) I've got it wrong, again! Thanks for your help! |
|
#14
|
||||
|
||||
|
There is a conflict with jQuery and Prototype. The way you currently have it on the page, the order of the scripts is correct. The jQuery scripts should come first. And since your menu script is so simple (or at least short), it can easily be made not to conflict by changing how it begins(changes and addition highlighted red):
Code:
// JavaScript Document //doesn't come with versioning, so I dub this 1.1 (I made some tweaks)! Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler4',
style: {
'padding': '10px',
'width': '800px',
'height': '110px'
Oh, and BTW - I was right, this page is pretty CPU intensive with all the constant screen rewrites, so you may still want to consider less (in this case) crawlers and disabling the animations in Lightbox. Though it only gets really bad when more than one page of it is open at a time. However, this would be the same as having your one page open and some other CPU intensive operation going on anywhere else in the browser or the computer in general.
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate Last edited by jscheuer1; 11-02-2009 at 02:31 PM. |
|
#15
|
|||
|
|||
|
> there is a conflict / See the above
Thank you but again! It is as I had imagined it could be. > this page is pretty CPU intensive with all the constant screen rewrites Yeah, I noticed that when I was testing. Maybe three rows instead of five (gotta keep that balance) and/or nix the animation. I'll play with it - THANK YOU! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|