1. Fun with Javascript.

    Date: 02/18/06     Keywords: php, css, html, seo

    [Error: Irreparable invalid markup ('') in entry. Owner must fix manually. Raw contents below.]

    I'm working on a site design using a good deal of DHTML and have run into a snag. I'm trying to detect where the user's mouse is, but I can't for the life of me get the correct position. I'm using the mouse detection script from quirksmode, but instead of giving me a position anywhere near the mouse (which in the case of what I was attempting to detect would of been somewhere in the neighbourhood of 100,350), but instead thinking my mouse is down outside of the page view somewhere around 560X. (Just in case it makes a difference, I have part of the page pulled in with a php require() ).


    tooltip.js

    function inittooltip(target)
    {
    tltp = new getObj(target);
    tltp.obj.onmouseover = showtooltip;
    tltp.obj.onmouseout = stoptooltip;
    }

    function showtooltip(e)
    {
    var isOpera = (navigator.userAgent.indexOf('Opera') != -1);
    var isIE = (!isOpera && navigator.userAgent.indexOf('MSIE') != -1)

    var posx = 0;
    var posy = 0;
    var targ;

    if (!e) var e = window.event;
    if (e.pageX || e.pageY)
    {
    posx = e.pageX;
    posy = e.pageY;
    }else if (e.clientX || e.clientY)
    {
    posx = e.clientX;
    posy = e.clientY;
    if (isIE)
    {
    posx += document.body.scrollLeft;
    posy += document.body.scrollTop;
    }
    }

    if (e.target) targ = e.target;
    else if (e.srcElement) targ = e.srcElement;

    if (targ.nodeType == 3) targ = targ.parentNode; // defeat Safari bug

    if (targ == "[object HTMLImageElement]") targ = targ.parentNode;

    tltarg = new getObj('tltp' + targ.id);
    alert(posx);

    tltarg.style.top = posx + 'px';
    tltarg.style.left = posy + 'px';
    tltarg.style.display = "block";
    }

    function stoptooltip(e)
    {

    }

    function getObj(name)
    {
    if (document.getElementById)
    {
    this.obj = document.getElementById(name);
    this.style = document.getElementById(name).style;
    }
    else if (document.all)
    {
    this.obj = document.all[name];
    this.style = document.all[name].style;
    }

    else if (document.layers)
    {
    this.obj = getObjNN4(document,name);
    this.style = this.obj;
    }
    }

    function getObjNN4(obj,name)
    {
    var x = obj.layers;
    var thereturn;
    for (var i=0;i {
    if (x[i].id == name)
    thereturn = x[i];
    else if (x[i].layers.length)
    var tmp = getObjNN4(x[i],name);
    if (tmp) thereturn = tmp;
    }
    return thereturn;
    }



    index.php



    ini_set('display_errors', 1);
    error_reporting(E_ALL & ~E_NOTICE);
    ?>

    Babillon Networks




    require('template/main/start.php');
    ?>





    start.php










































    mainstyle.css
    #mainmenu {
    background-color: #C7C7C7;
    max-width: 350px;
    min-height: 200px;
    padding: 10px 10px 10px 10px;
    }

    #navbox {
    position: relative;
    top: 10px;
    }

    #maintitle {
    position: relative;
    float: left;
    padding-right: 20px;
    }

    #display {
    position: relative;
    min-width: 330px;
    min-height: 170px;
    top: -4px;
    background-color: #FFFFFF;
    }

    .tooltip {
    display: none;
    background-color: #C7C7C7;
    border-style: solid;
    border-width: 2px;
    border-color: #B70302;
    }



    Source: http://community.livejournal.com/webdesign/1064403.html

  2. I dont know jack about ASP

    Date: 02/18/06     Keywords: no keywords

    Ok so far with the help of  '[info]'drelvistoad this is what I have... Now for another task. I must some how make it not output .jpg images i thought an If url = "*.jpg" else if blah statment would work but it wouldnt.. maybe im just not putting it in the right place... If anyone could help it would be greatly appreciated =D Ill tip too if it will help speed things up lol. 


    Source: http://community.livejournal.com/webdesign/1064123.html

  3. shameless plug

    Date: 02/18/06     Keywords: web

    Hey guys, just wanted to do a shameless plug for a small, but very cool message board which focuses on web, graphics, design and all that kind of stuff (of course there's off-topic, too ;)).
    We do graphic & mural battles all the time, and everyone's welcome to participate there as well ;)

    Check it out here:

    Source: http://community.livejournal.com/webdesign/1063909.html

  4. Anyone in need of promotion?

    Date: 02/17/06     Keywords: hosting

    myspace.com/mediapromo

    That's me. I made a work-related profile due to just getting back with my old job at a hosting company, so any of you that might like a new spot to host or pick up domains from, just drop me a line. I can also respond to comments here, but I'm able to log onto myspace more than here.

    Have a good one!

    Source: http://community.livejournal.com/webdesign/1063277.html

  5. ecommerce for a pdf?

    Date: 02/17/06     Keywords: no keywords

    I'm working on a proposal for a client that wants to sell one pdf file. That's it. It's a white paper.

    Any suggestions for online e-commerce solutions that do not require installation of anything on my end? Something akin to CoolCart but that delivers a link to a pdf file or something like that?

    Figuring Authorize.net for payment gateway but open to suggestions there as well.

    Thanks,
    Chris

    Source: http://community.livejournal.com/webdesign/1063162.html

  6. GoDaddy

    Date: 02/16/06     Keywords: no keywords

    I figured since the last guy posted, I would mention to everyone about GoDaddy that they are always sending me discounts and what not, and I wasn't sure if everyone is getting them. I always try to type in Amazon1 or Amazon2 and so on and so forth and they work pretty well. Just an FYI for the next time you register a domain.

    Source: http://community.livejournal.com/webdesign/1062612.html

  7. Site Map Tool

    Date: 02/15/06     Keywords: no keywords

    Does anyone know of a good site map generator tool (except Xenu)? I need to create a site map for a site with bunch of links and pages, and doing it manually is out of the question.

    Thanks.

    Source: http://community.livejournal.com/webdesign/1062170.html

  8. GoDaddy.com

    Date: 02/15/06     Keywords: no keywords

    Does anyone have any experience with these guys? Aside from their commercials, I know little about them.

    All I really want to know is, are they reliable?

    Source: http://community.livejournal.com/webdesign/1062136.html

  9. A word of advice

    Date: 02/15/06     Keywords: hosting

    IF you are lookign for hosting, avoid Accuburst.com at all costs. I'm with them now, and I'm in the process of changing my hosting to Dreamhost.

    Accuburst is good at returning email to their sales department, but terrible when it comes to support after they have your money.
    The current problem is their servers have been up and down over the last 4 days, with email bounching, etc.

    Want to see some *not* happy customers, and support blowing smoke up people's backsides? Go look at thier support forums.

    I shold have know something was up then you have to dig through a forum to find DNS settings.

    I don't know about the rest of you, but if my sites are down, and my clients aren't happy, I'm not making money.

    Source: http://community.livejournal.com/webdesign/1061572.html

  10. Form help

    Date: 02/14/06     Keywords: php, browser

    This is driving me nuts! I've created a form.. using the same technique that I've created hundreds of other forms with, and for some reason I cannot get this form to send the email! I need a fresh pair of eyes. Anyone that would like to take a look and tell me if you see something wrong with the coding, I would REALLY appreciate it!


    The form:

    < form method="post" action="../php_uploads/comment.php">
    < font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">
    < input type="hidden" name="subject" value="Perfect Pools - Comment Form">
    Name: < input type="text" name="Name" size="30">

    Address: < input type="text" name="Address" size="30">

    City: < input type="text" name="City" size="30">  State: < input type="text" name="State" size="5">

    Zip: < input type="text" name="Zip" size="20">

    Daytime Phone: < input type="text" name="DaytimePhone" size="20">

    Evening Phone: < input type="text" name="EveningPhone" size="20">

    Email: < input type="text" name="Email" size="30">

    Comments: < textarea name="Comments" rows="5" cols="30">

    < input name="submit" type="submit" value="Submit Comments"> < input name="reset" type="reset" value="Clear Comments">


    Email script:

    < ?php

    $recipient = 'brandi@wikedawsum.com';

    $subject = 'Perfect Pools - Comments Form';

    $form_url = 'http://perfectpools.wikedawsum.com/pages/comment.php';

    $msg .= "---------------\n";
    $msg .= "$subject\n";
    $msg .= "---------------\n\n";
    $msg .= "Name: $_POST[Name]\n";
    $msg .= "Address: $_POST[Address]\n";
    $msg .= "City: $_POST[City]\n";
    $msg .= "State: $_POST[State]\n";
    $msg .= "Zip: $_POST[Zip]\n";
    $msg .= "Daytime Phone: $_POST[DaytimePhone]\n";
    $msg .= "Evening Phone: $_POST[EveningPhone]\n";
    $msg .= "Email: $_POST[email]\n";
    $msg .= "Comments: $_POST[Comments]\n";

    $req1 ="$Name";
    $req2 ="$Email";
    $req3 ="$DaytimePhone";

    $error_required = '< p align="center">< strong>< font color="#000000" size="4" face="Geneva, Arial, Helvetica, sans-serif">It appears you forgot to enter either your name, email, or a daytime phone number. Please press the BACK button in your browser and try again.';

    $error_email = '< p align="center">< strong>< font color="#000000" size="4" face="Geneva, Arial, Helvetica, sans-serif">Oops, it appears that the email address you filled in is not a valid one. Please press the back button on your browser and try again. Please check carefully that you filled in all information in the right fields!';

    $success_message = '< p align="center">< strong>< font color="#000000" size="4" face="Geneva, Arial, Helvetica, sans-serif">Your information was submitted successfully! Someone will contact you within the next few business days. Please call our main office if you have any questions.

    < font color="#000000" size="3" face="Geneva, Arial, helvetical, sans-serif">Return to the Home page.';

    if ($header ==""){
    $use_headers ='0';
    $header = '';
    } else {$use_headers ='1';}
    if ($footer ==""){
    $use_footers ='0';
    $footer = '

    ';
    } else {$use_footers ='1';}

    function is_valid_email ($address) {
    return (preg_match(
    '/^[-!#$%&\'*+\\.\/0-9=?A-Z^_`{|}~]+'.
    '@'.
    '([-0-9A-Z]+\.)+' .
    '([0-9A-Z]){2,4}$/i',
    trim($address)));
    }
    function is_valid_email_eregi ($address) {
    return (eregi(
    '^[-!#$%&\'*+\\./0-9=?A-Z^_`{|}~]+'.
    '@'.
    '([-0-9A-Z]+\.)+' .
    '([0-9A-Z]){2,4}$',
    trim($address)));
    }

    if (!isset($req1) || !isset($req2) || !isset($req3)) {
    header( "Location: $form_url" ); }

    elseif (empty($req1) || empty($req2) || empty($req3)) {

    if ($use_headers =="0"){
    echo "$header";
    } else { include ("$header"); }
    ?>
    < h2>< font color="#000000">Error



    \n";
    $mailheaders .= "Reply-To: \"$_POST[email]\" <$_POST[email]> \n";
    $mailheaders .= "X-Priority: 3 \n";
    $mailheaders .= "X-MSMail-Priority: High \n";
    $mailheaders .= "X-Mailer: PHP4";

    mail($recipient, $subject, $msg, $mailheaders);

    if ($use_headers =="0"){
    echo "$header";
    } else { include ("$header"); }
    ?>
    < h2>< font color="#000000">Thank You,



    < h2>< font color="#000000">Error




    Thank you all in advance!

    Update: I know the code is pointing to the form correctly because when I fill it out and hit submit I get the error message about one of my required fields not being filled out. However, the fields ARE filled out correctly. Not sure what the problem is.

    Source: http://community.livejournal.com/webdesign/1061027.html

  11. asp server...

    Date: 02/14/06     Keywords: asp

    Just a quick survey to see who's using what company for an asp-enabled server & how much you're paying... the company I normally use charges a $35 transfer fee, and I wanted to see if I could get it cheaper for my client.

    Suggestions?

    Source: http://community.livejournal.com/webdesign/1060741.html

  12. Hosting and Domains

    Date: 02/14/06     Keywords: hosting

    I have a few sites hosted at maxipointservers.net. They have now sold and raised their prices, prompting me to look for a new solution. I have few requirements, just need an inexpensive host with 20 to 40 mbs of space. Any suggestions?

    Would it be best to have the domains registered one place and have the hosting separate, or are all-in-one packages the way to go?

    I'm a bit flustered, as they threw this at me suddenly with little more notice than a hurried e-mail saying I owed them money to have my sites re-activated.

    Source: http://community.livejournal.com/webdesign/1060272.html

  13. CSS Anomaly in IE on Windows

    Date: 02/13/06     Keywords: no keywords

    Hi,

    Take a look at the site www.chefschoolreview.com in IE on Windows. See the sidebar on the top right with the header "Chef Schools"? Okay, now scroll down a little bit so the top of the sidebar goes out of view. Then, scroll back up. See how the top of the white part of the box disappears, leaving "Arizona" and part of "California" out of the box? What do you think could be causing this?

    The beige dotted border around the Featured School breaks, too. On the left and right sides just above the corners the dotted lines separate.

    Thanks for the help and input.

    lex

    Source: http://community.livejournal.com/webdesign/1059895.html

  14. CSS + IE

    Date: 02/13/06     Keywords: css, html, seo

    Oh IE, why do you hate me. From what I read, this is a common problem:

    This is a mouseover link, using CSS and such. I'm doing HTML Strict.

    Firefox:
    Image hosting by TinyPic


    IE:
    Image hosting by TinyPic

    Can you guys suggest a fix so the IE looks like the Firefox.

    The code:
    #nav {
    margin:0;
    padding:0;
    width:100%;
    text-align:center;
    font-variant:small-caps;
    font-size:18px;
    letter-spacing:2px;
    vertical-align: bottom;
    }
    #nav li {
    display:inline;
    padding:0;
    margin:0;
    }
    #nav a:link,
    #nav a:visited {
    color:#ddb;
    background:#467;
    padding:10px 10px 10px 10px;
    width:auto;
    text-decoration:none;
    }
    #nav a:hover {
    color:#fff;
    background:#355;
    }


    Thanks all.

    Source: http://community.livejournal.com/webdesign/1059403.html

  15. CYW

    Date: 02/12/06     Keywords: html, web

    http://www.connectyourweb.com/

    Has anybody used these guys before? They seem fairly cheap and that's what I'm looking for at the moment.

    Specifically this page: http://www.connectyourweb.com/bargain.html

    Well, thanks all, if you can offer up some words and such.

    Source: http://community.livejournal.com/webdesign/1059121.html

  16. slow server issue?

    Date: 02/12/06     Keywords: rss, xml, web

    So I previously posted that issue with getting rss feeds to show up nicely on a website, and things are great save for the occasional happening of this:

    Unable to open RSS Feed http://website.com/blog/index.xml with error Empty reply from server, exiting

    ...how do i make that happen less? or at least, in the event it does happen, not just give up loading the rest of the website?

    along with that, it would be great if i'm more certain of what it even means. from the sound of things it means "we went to load this but it took too long and we gave up, sorry." is that the case?

    Source: http://community.livejournal.com/webdesign/1059048.html

  17. PHP require() problem

    Date: 02/12/06     Keywords: php, templates, html, apache

    I've decided to finally start learning PHP. I've been doing rather well, until I decided to chop up my template structure a bit more.

    Originally I had my directory structure like so:

    HTTPDEV
    ..bin
    ....js
    ..Data
    ..Templates
    ....footers
    ....headers
    ....mains
    ....navs
    ....images
    ....styles
    ....miscs

    I have my main page (proj1.php) in the HTTPDEV folder, with all of the other files down the hierarchy.

    I've added a bodies folder beneath Templates, and to put the code to include items from footers, headers, mains, navs, miscs, etc in it.

    This is the code in proj1.php under the bodies directory:

    ?php
    				echo "div id=\"header\">";
    
    				require('../headers/proj1.html');
    
    				echo"/div>";
    				echo"div id=\"container\">";
    				echo"div id=\"center\" class=\"column\">";
    				
    				require('../mains/proj1.html');
    
    				echo"";
    				echo"div id=\"left\" class=\"column\">";
    
    				require('../navs/proj1.html');
    
    				echo"/div>";
    				echo"div id=\"right\" class=\"column\">";
    				
    				require('../miscs/proj1.html');
    
    				echo"/div>";
    				echo"/div>";
    				echo"div id=\"footer\">";
    
    				require('../footers/proj1.html');
    
    				echo"/div>";
    ?
    

    But this gives me this error:

    Warning: main(../headers/proj1.html) [function.main]: failed to open stream: No such file or directory in J:\DevProj\HTTPDEV\Templates\bodies\proj1.php on line 4

    Fatal error: main() [function.require]: Failed opening required '../headers/proj1.html' (include_path='C:\Program Files\Apache Group\Apache2\modules\php\PEAR') in J:\DevProj\HTTPDEV\Templates\bodies\proj1.php on line 4


    My directory structure should be putting things where they belong... All I did was move the requires into another file to aid in modularity. It worked before when the requires were all require('Templates/......

    Source: http://community.livejournal.com/webdesign/1058584.html

  18. Setting a price

    Date: 02/11/06     Keywords: database, web

    I'm going to be working with a graphic designer to revamp a website for a company and they've asked us to quote them a rate. They would prefer that we give them a set cost, not an hourly rate. I haven't done much freelance before and neither has she so I was wondering if any of you knew of a website or two that has good guidelines on doing this?

    Basically none of the content is going to change, she's going to give it a facelift and I'm going to do the coding. They don't want anything too fancy, no Flash or database driven content, they're just wanting to update an out of date site. Without really counting, I would say the site consists of about 40-50 pages due to a lot of product descriptions. (I know, I know, but they have no interest in a database driven site...)

    Any suggestions on reference materials or what you might charge for this?

    Source: http://community.livejournal.com/webdesign/1058326.html

  19. help?

    Date: 02/10/06     Keywords: no keywords

    Would any one be willing to help me with dreamweaver....my teacher sucked at explaining it and i`m so confused when it comes to div tags and style sheets any help would be amazing.


    Thanks!

    Source: http://community.livejournal.com/webdesign/1057880.html

  20. Rewriting URL to Remove Variable

    Date: 02/10/06     Keywords: php

    Hi,

    I'm trying to rewrite my URLs (using mod_rewrite) for my portfolio section, which look like this currently:

    http://www.spacebetween.com/work/work.php?page=work2

    I would like it to be more search engine friendly for tracking purposes, so I want it to look like this, if possible:

    http://www.spacebetween.com/work/2/

    Thanks in advance for any input or help.

    lex

    Source: http://community.livejournal.com/webdesign/1057298.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home