Old 25-09-2007, 12:24   #1 (permalink)
pat
jorge regula
 
pat's Avatar
 
Join Date: Aug 2004
Location: B'ham/Leeds
Posts: 4,868
Send a message via MSN to pat
Javascript help

Hiya, making a new portfolio and trying to do soemthing with draggable layers - arranging a few images on the page using coordinates, that can be dragged around the screen. I got some code from a site but it seems to only let me have one draggable layer on the page at once?

Here's the page with only one image, working:

Patrick Johnson

And here's the code in the html with 2 images, nothing shows up in the browser:

PHP Code:
<script src="movingimages.js" type="text/javascript" language="javascript1.2"></script>

</head>

<body>
<script type="text/javascript" language="javascript1.2"><!--
        createDragableLayer(
            '<img src="http://www.designerstalk.com/forums/images/saf1.jpg>', //contents of dragable layer (can contain HTML etc.)
            0,                       //left coordinate of dragable layer
            0,                      //top coordinate of dragable layer
            498,                      //width of dragable layer
            374,                       //optional: height of dragable layer (use null for default)
            '0'                 //optional: background colour of dragable layer (use null for default)
        );
    //--></script>


<script type="text/javascript" language="javascript1.2"><!--
        createDragableLayer(
            '<img src="http://www.designerstalk.com/forums/images/saf2.jpg>', //contents of dragable layer (can contain HTML etc.)
            40,                       //left coordinate of dragable layer
            360,                      //top coordinate of dragable layer
            467,                      //width of dragable layer
            623,                       //optional: height of dragable layer (use null for default)
            '0'                 //optional: background colour of dragable layer (use null for default)
        );
    //--></script>



</body> 

And here's the js:

www.2605.co.uk/new/movingimages.js

Be really grateful for some help, tia

Pat
__________________
  Reply With Quote
Old 25-09-2007, 14:01   #2 (permalink)
gray
i still want paying
 
gray's Avatar
 
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,713
&uot
Quote:
Originally Posted by pat
Hiya, making a new portfolio and trying to do soemthing with draggable layers - arranging a few images on the page using coordinates, that can be dragged around the screen. I got some code from a site but it seems to only let me have one draggable layer on the page at once?

Here's the page with only one image, working:

Patrick Johnson

And here's the code in the html with 2 images, nothing shows up in the browser:

PHP Code:
<script src="movingimages.js" type="text/javascript" language="javascript1.2"></script>

</head>

<body>
<script type="text/javascript" language="javascript1.2;><!--
        createDragableLayer(
            '<img src="http://www.designerstalk.com/forums/images/saf1.jpg">', //contents of dragable layer (can contain HTML etc.)
            0,                       //left coordinate of dragable layer
            0,                      //top coordinate of dragable layer
            498,                      //width of dragable layer
            374,                       //optional: height of dragable layer (use null for default)
            '0'                 //optional: background colour of dragable layer (use null for default)
        );
    //--></script>


<script type="text/javascript" language="javascript1.2"><!--
        createDragableLayer(
            '<img src="http://www.designerstalk.com/forums/images/saf2.jpg">', //contents of dragable layer (can contain HTML etc.)
            40,                       //left coordinate of dragable layer
            360,                      //top coordinate of dragable layer
            467,                      //width of dragable layer
            623,                       //optional: height of dragable layer (use null for default)
            '0'                 //optional: background colour of dragable layer (use null for default)
        );
    //--></script>



</body> 

And here's the js:

www.2605.co.uk/new/movingimages.js

Be really grateful for some help, tia

Pat

sort your image linking out first, nothing loads for me at all?
  Reply With Quote
Old 25-09-2007, 14:37   #3 (permalink)
Jayx
Now with added sarcasm.
 
Jayx's Avatar
 
Join Date: Aug 2006
Location: George, South Africa
Posts: 351
Send a message via MSN to Jayx Send a message via Skype™ to Jayx
Worked for me, but my JS skills suck ... sorry :-(
__________________
I made 100 posts and all I got is this stupid signature.
  Reply With Quote
Old 25-09-2007, 14:59   #4 (permalink)
foolfodder
Senior Member
 
Join Date: Aug 2007
Location: Ross-on-Wye
Posts: 161
  Reply With Quote
Old 25-09-2007, 15:11   #5 (permalink)
Do Gooder
 
Do Gooder's Avatar
 
Join Date: May 2007
Posts: 5,502
on an aside.

like the CimbaliBand on your myspace page pat. download download
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8