HighDots Forums  

Hey Osgood! Snap on Mac IE.5

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Hey Osgood! Snap on Mac IE.5 in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
johnnyivan
 
Posts: n/a

Default Hey Osgood! Snap on Mac IE.5 - 07-16-2004 , 05:51 AM






Hi Osgood,
You advised me on how to fix this problem but I still can't get it to work.
Would you be so good as to check the code below and tell me if it's the
section that needs to be amended? You see, that what I have in my original
code looks different to what you had, namely the extra '
xx+="px";yy+="px";}e.left=xx;e.top=yy;}} ' bits. Here it is:

if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){

xx+=parseInt(document.body.leftMargin);yy+=parseIn t(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
}

Thanks very much
John



Reply With Quote
  #2  
Old   
johnnyivan
 
Posts: n/a

Default Re: Hey Osgood! Snap on Mac IE.5 - 07-16-2004 , 05:54 AM






Sorry that didn't display very well when it was posted - lots of extra line
breaks. I'll try to neaten it up:

if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){
xx+=parseInt(document.body.leftMargin);yy+=parseIn t(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
}



Reply With Quote
  #3  
Old   
johnnyivan
 
Posts: n/a

Default Re: Hey Osgood! Snap on Mac IE.5 - 07-16-2004 , 05:55 AM



I'll try again...

if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){
xx+=parseInt(document.body.leftMargin);yy+=parseIn t(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
}



Reply With Quote
  #4  
Old   
johnnyivan
 
Posts: n/a

Default Re: Hey Osgood! Snap on Mac IE.5 - 07-16-2004 , 05:57 AM



Still not right! I put this through notepad too. 4th time lucky!

if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){
xx+=parseInt(document.body.leftMargin);yy+=parseIn t(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
}




Reply With Quote
  #5  
Old   
Osgood
 
Posts: n/a

Default Re: Hey Osgood! Snap on Mac IE.5 - 07-16-2004 , 06:13 AM



johnnyivan wrote:
Quote:
Still not right! I put this through notepad too. 4th time lucky!

if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){
xx+=parseInt(document.body.leftMargin);yy+=parseIn t(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
}



If you open code view your revised javscript code should look like
below. I've left the line breaks so you can actually see the line before
and the line after.



break;}}}e=(document.layers)?el:el.style;xx=parseI nt(x+ox+a),yy=parseInt(y+oy+b);

//if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){
//xx+=parseInt(document.body.leftMargin);yy+=parseIn t(document.body.topMargin);}--

e.left=xx+pa;e.top=yy+pa;}}}
}
//-->
</script>



Reply With Quote
  #6  
Old   
johnnyivan
 
Posts: n/a

Default Re: Hey Osgood! Snap on Mac IE.5 - 07-16-2004 , 06:55 AM



Hi Osgood,
Thanks so much for your attention on this. I'm going to see if that works
[my wife is trying to get this to work]. My code seems to be different from
your as I said. It has this:

function P7_Snap() { //v2.61 by PVII

Am I using an older version of the extension than you?
John



"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
johnnyivan wrote:
Still not right! I put this through notepad too. 4th time lucky!

if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){

xx+=parseInt(document.body.leftMargin);yy+=parseIn t(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
}



If you open code view your revised javscript code should look like
below. I've left the line breaks so you can actually see the line before
and the line after.




break;}}}e=(document.layers)?el:el.style;xx=parseI nt(x+ox+a),yy=parseInt(y+o
y+b);
Quote:
//if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){

//xx+=parseInt(document.body.leftMargin);yy+=parseIn t(document.body.topMargi
n);}--
Quote:
e.left=xx+pa;e.top=yy+pa;}}}
}
//--
/script




Reply With Quote
  #7  
Old   
Osgood
 
Posts: n/a

Default Re: Hey Osgood! Snap on Mac IE.5 - 07-16-2004 , 07:16 AM



johnnyivan wrote:
Quote:
Hi Osgood,
Thanks so much for your attention on this. I'm going to see if that works
[my wife is trying to get this to work]. My code seems to be different from
your as I said. It has this:

function P7_Snap() { //v2.61 by PVII

Am I using an older version of the extension than you?

I guess you may be using a newer version than me. I downloded mine some
time ago.



Reply With Quote
  #8  
Old   
Osgood
 
Posts: n/a

Default Re: Hey Osgood! Snap on Mac IE.5 - 07-16-2004 , 07:20 AM



johnnyivan wrote:

Quote:
Hi Osgood,
Thanks so much for your attention on this. I'm going to see if that works
[my wife is trying to get this to work]. My code seems to be different from
your as I said. It has this:

function P7_Snap() { //v2.61 by PVII

ooops sorry you appear to have the older version.




Reply With Quote
  #9  
Old   
johnnyivan
 
Posts: n/a

Default Re: Hey Osgood! Snap on Mac IE.5 - 07-16-2004 , 08:16 AM



Oh heck - perhaps if I reapply the behaviour with the new version it'll all
update. I'll try from home tonight. Thanks again Osgood, you're os good as
gold.
john


"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
johnnyivan wrote:

Hi Osgood,
Thanks so much for your attention on this. I'm going to see if that
works
[my wife is trying to get this to work]. My code seems to be different
from
your as I said. It has this:

function P7_Snap() { //v2.61 by PVII


ooops sorry you appear to have the older version.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.