Re: Pub 2002 vs. 2007

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Dawnvk

I also have 2002 and 2007. I found a few things about 2007 I like that 2002 did not have. Only reason I did get Pub 2007 is because I upgraded OFFICE and it came with it. 2007 has a patch that makes it compatible with the lasted generation on web browsers (no need to ungroup and such).

The drop down code may get scrambled in pub.


Spike

"dawnvk" <dawnvk@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:CE3E9A51-0F28-4F37-B413-D88DD74C25D4@xxxxxxxxxxxxxxxx
Regarding the code, when I run my website through www.validaor.com, I get 113
errors.
http://validator.w3.org/check?uri=www.vkvboers.com&charset=%28detect+automatically%29&doctype=Inline&group=0

To my knowledge, there's nothing I can do to fix any of these, but I'm not a
coding expert. I'm thinking it just doesn't like the code Pub spews out in
it's export to .htm. Does this sound correct?

I have Pub 2007, I can run some tests myself. I just didn't want to go
through it until I got some of the other questions answered. Namely, I guess,
the biggest question I should have asked - which I was kind of getting to: is
there a compelling reason to upgrade? Ok, I've already purchased the sw, but
that doesn't mean I am ready to use it unless someone tells me a darn good
reason to go through all the work.

Regarding the drop down code not working on FF (the creator of the code is
stumped, they say it's tested to work on FF, FF says the code isn't the best,
but suggest code I can't really use in Pub, and then they pointed out all the
problems in my code via Validator). Anyway, here's the code:

<style>
.tab{font-family: arial, verdana, san-serif; font-size: 14px;}
.asd{text-decoration: none; font-family: arial, verdana, san-serif;
font-size: 13px; color: #4234ff;}
</style>

<script language=javascript>
window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var menuActive = 0;
var menuOn = 0;
var onLayer;
var timeOn = null;

function showLayer(layerName,aa){
var x =document.getElementById(aa);
var tt =findPosX(x);
var ww =findPosY(x)+20;

if (timeOn != null) {
clearTimeout(timeOn);
hideLayer(onLayer);
}
if (IE4) {
var layers = eval('document.all["'+layerName+'"].style');
layers.left = tt;
eval('document.all["'+layerName+'"].style.visibility="visible"');
}
else {
if(document.getElementById){
var elementRef = document.getElementById(layerName);
if((elementRef.style)&& (elementRef.style.visibility!=null)){
elementRef.style.visibility = 'visible';
elementRef.style.left = tt;
elementRef.style.top = ww;
}
}
}
onLayer = layerName
}

function hideLayer(layerName){
if (menuActive == 0)
{
if (IE4){
eval('document.all["'+layerName+'"].style.visibility="hidden"');
}
else{
if(document.getElementById){
var elementRef = document.getElementById(layerName);
if((elementRef.style)&& (elementRef.style.visibility!=null)){
elementRef.style.visibility = 'hidden';
}
}
}
}
}

function btnTimer() {
timeOn = setTimeout("btnOut()",600)
}

function btnOut(layerName){
if (menuActive == 0){
hideLayer(onLayer)
}
}

var item;
function menuOver(itemName,ocolor){
item=itemName;
itemName.style.backgroundColor = ocolor; //background color change on mouse
over
clearTimeout(timeOn);
menuActive = 1
}

function menuOut(itemName,ocolor){
if(item)
itemName.style.backgroundColor = ocolor;
menuActive = 0
timeOn = setTimeout("hideLayer(onLayer)", 100)
}

function findPosX(obj)
{
var curleft = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}
else if (obj.x)
curleft += obj.x;
return curleft;
}

function findPosY(obj)
{
var curtop = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}
else if (obj.y)
curtop += obj.y;
return curtop;
}

</script>

<table valign=top cellpadding=0 cellspacing=0 width=750 border=0>
<tr><td bgcolor=#4234ff>
<table align=center class=tab><tr>
<td id=0 align=center onmouseout=btnTimer()
onmouseover=showLayer("Menu0",'0') style="color: #ffffff"> <b>VKV
Home</b></td>
<td style="color: #ffffff;"> || </td><td id=1 align=center
onmouseout=btnTimer() onmouseover=showLayer("Menu1",'1') style="color:
#ffffff"> <b>Our Herd</b></td>
<td style="color: #ffffff;"> || </td><td id=2 align=center
onmouseout=btnTimer() onmouseover=showLayer("Menu2",'2') style="color:
#ffffff"> <b>For Sale</b></td>
<td style="color: #ffffff;"> || </td><td id=3 align=center
onmouseout=btnTimer() onmouseover=showLayer("Menu3",'3') style="color:
#ffffff"> <b>Custom Equipment</b></td>
<td style="color: #ffffff;"> || </td><td id=4 align=center
onmouseout=btnTimer() onmouseover=showLayer("Menu4",'4') style="color:
#ffffff"> <b>Show Winners</b></td>
<td style="color: #ffffff;"> || </td><td id=5 align=center
onmouseout=btnTimer() onmouseover=showLayer("Menu5",'5') style="color:
#ffffff"> <b>Links & Info</b></td>
</tr></table>

<div id=Menu0 style="position: absolute; border: 1px solid #000000;
visibility:hidden; z-ndex: 1">
<table bgcolor=#ffeecc cellspacing=0 cellpadding=0 style="border-collapse:
collapse;">
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/";> VK Ventures </a> </td></tr>
</table></div>
<div id=Menu1 style="position: absolute; border: 1px solid #000000;
visibility:hidden; z-ndex: 1">
<table bgcolor=#ffeecc cellspacing=0 cellpadding=0 style="border-collapse:
collapse;">
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0001.htm";> Our Herd
</a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0002.htm";> Herd Sires
</a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0011.htm";> Kids at
Play </a> </td></tr>
</table></div>
<div id=Menu2 style="position: absolute; border: 1px solid #000000;
visibility:hidden; z-ndex: 1">
<table bgcolor=#ffeecc cellspacing=0 cellpadding=0 style="border-collapse:
collapse;">
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0009.htm";> Full Blood
Bucks </a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0010.htm";> Full Blood
Does </a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0013.htm";> Percentage
Bucks </a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0014.htm";> Percentage
Does </a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0012.htm";> Experienced
Does </a> </td></tr>
</table></div>
<div id=Menu3 style="position: absolute; border: 1px solid #000000;
visibility:hidden; z-ndex: 1">
<table bgcolor=#ffeecc cellspacing=0 cellpadding=0 style="border-collapse:
collapse;">
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0004.htm";> VKV Head
Gate </a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0006.htm";> VKV Feeders
</a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0005.htm";> VKV Creep
Gate </a> </td></tr>
</table></div>
<div id=Menu4 style="position: absolute; border: 1px solid #000000;
visibility:hidden; z-ndex: 1">
<table bgcolor=#ffeecc cellspacing=0 cellpadding=0 style="border-collapse:
collapse;">
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0003.htm";> 2009 Show
Winners </a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0016.htm";> 2008 Show
Winners </a> </td></tr>
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0015.htm";> 2007 Show
Winners </a> </td></tr>
</table></div>
<div id=Menu5 style="position: absolute; border: 1px solid #000000;
visibility:hidden; z-ndex: 1">
<table bgcolor=#ffeecc cellspacing=0 cellpadding=0 style="border-collapse:
collapse;">
<tr height=25 onmouseout=menuOut(this,'#ffeecc')
onmouseover=menuOver(this,'#FFFFFF')>
<td bgcolor=#4234ff> </td><td align=left>
<a class=asd href="http://www.vkvboers.com/index_page0007.htm";> Links &
Info </a> </td></tr>
</table></div>
</td></tr></table>


Thanks for input, always fun to learn more about Pub.

Dawnvk

"Spike" wrote:

Dawnvk

Question #1:
2007 has a picture compression function built in

Question #2:
This is an unknown. Some 2002 publications open without a hitch and some
seem to act oddly when it comes time to save them. Post your pub file and
we can try and open it and test it with 2007.
"www.vkvboers.com/pub/myfile.pub" would work

Question #3:
I have not seen a difference with the files produced by 2007 and 2002
index.htm etc

Question #4:
Without trying your specific code in 2007 it is an unknown. Can you post
the code?

Question #5:
?

One person's findings. I am thinking that you will get more input and
opinions on this one (hopefully)

Spike


"dawnvk" <dawnvk@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0DA78715-AAA1-431C-8744-893E992FA4B6@xxxxxxxxxxxxxxxx
> I've used 2002 for some time to create some fairly complex websites and > I
> really like it. I'm considering moving to 2007, but have a few > questions
> first. I can't remember the details, but somewhere along the way, I
> installed
> a little filter/tool that somehow filters the photos and makes them
> smaller.
> Since installing this "feature" when I export to webpage, I get a > dialog
> box
> that says: "Exporting your Web site as "Web Page, Filtered," produces
> smaller
> HTML files that can be posted to and downloaded from the Internet more
> quickly.... Do you want to continue with this export?" This is a really
> cool
> tool. I have about 100 photos on my website, and I change them often. I
> sure
> wouldn't want to have to open every file and reduce it for quicker > loading
> every time.
>
> My first question is... does 2007 have something similar?
>
> Second question: will my 2002 web open/convert seamlessly to 2007
>
> Third: I know the files are broken out differently in 2007. Now I have
> index.htm etc. and the photos look like: index_image001.jpg. Can > someone
> tell
> me where I can read up on the difference. I use filezilla to upload now
> fyi.
>
> Fourth: Until I recently added some code to create drop-down menus > (very
> cool), it seemed to work/look fine in FF - now those menus aren't great > in
> FF, but work great in IE 6 and 7. What can I expect from 2007 in this
> regard.
>
> Fifth: When I run my website through a code checker, I come up with > about
> 100 errors, does 2007 create cleaner more happy code? Is there an > update
> somewhere for 2002 to create cleaner code?
>
> Thanks to anyone who might have answers to any of these questions.
>
> My website is www.vkvboers.com if anyone's interested in looking at > what
> I've done so far.
>
> Dawnvk
>
>

.



Relevant Pages

  • Re: bitcopy in delphi.
    ... > Delphi. ... part of the reason your code looks simpler. ... destination buffers overlap. ...
    (alt.comp.lang.borland-delphi)
  • Re: Whtas the Story with document.createElement(iframe) in IE?
    ... var iframe = document.createElement; ... The answer he was looking for was really the *official* reason why the ... stupid mystical incantation in necessary in the first place ... That may be what you consider official, but it is nonsense nonetheless. ...
    (comp.lang.javascript)
  • Re: SolidWorks Subscription
    ... likely that if my VAR won't give me a break I simply won't ante up at ... 2006 for that reason, and I probably won't be anytime soon. ... > development in the last six years as a licensed user. ... > customers to continue this practice. ...
    (comp.cad.solidworks)
  • Re: AJAX methodology
    ... var AJAX = ... There is no good reason not to wrap this into a prototype object. ... /** The reason we can't use 'this' inside handler since it would not ... `XHR' will always have the ...
    (comp.lang.javascript)
  • Re: how does this function work?
    ... others to display. ... Any reason for that? ... Geoff ... > var ig = 0; ...
    (comp.lang.javascript)