Hey Osgood! Snap on Mac IE.5

message from johnnyivan on 16 Jul 2004
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+=parseInt(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
}
Thanks very much
John
 
johnnyivan replied to johnnyivan on 16 Jul 2004
if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){
xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
 
johnnyivan replied to johnnyivan on 16 Jul 2004
if(navigator.appVersion.indexOf("MSIE 5")>-1 &&
navigator.appVersion.indexOf("Mac")>-1){
xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
 
johnnyivan replied to johnnyivan on 16 Jul 2004
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+=parseInt(document.body.topMargin)
;
xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
 
Osgood replied to johnnyivan on 16 Jul 2004
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=parseInt(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+=parseInt(document.body.topMargin);}--

e.left=xx+pa;e.top=yy+pa;}}}
}
//-->
</script>
 
johnnyivan replied to Osgood on 16 Jul 2004
Hi Osgood,
Thanks so much for your attention on this. I'm going to see if that works
function P7_Snap() { //v2.61 by PVII

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

"Osgood" <notavailable@atthisaddress.com> wrote in message
news:cd8d8s$6ot$1@forums.macromedia.com...
xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin)
break;}}}e=(document.layers)?el:el.style;xx=parseInt(x+ox+a),yy=parseInt(y+o
y+b);
//xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargi
n);}--
 
Osgood replied to johnnyivan on 16 Jul 2004
ooops sorry you appear to have the older version.
 
johnnyivan replied to Osgood on 16 Jul 2004
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@atthisaddress.com> wrote in message
news:cd8h6n$bnq$1@forums.macromedia.com...
 
Osgood replied to johnnyivan on 16 Jul 2004
I guess you may be using a newer version than me. I downloded mine some
time ago.
 

Archived message: Hey Osgood! Snap on Mac IE.5 (Macromedia Dreamweaver)