Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by gxpark

  1. gxpark

    Optimizing a query

    nevermind, I just switched the table search order and now it's pretty fast :)
  2. gxpark

    Optimizing a query

    Hi, I wonder if someone is willing to help me optimize the following query: SELECT <somefields> FROM schools LEFT JOIN addresses ON addresses.fkSchool = idSchool LEFT JOIN users ON users.idUser = fkLogin LEFT JOIN xlevels ON xlevels.fkSchool = idSchool WHERE fkDep = 1 AND (fkLevel = 2 OR...
  3. gxpark

    Redirecting URLs

    Ok, so I can do this: RewriteEngine on RewriteBase /somedir/help RewriteRule ^chat(.*) index.iss?on=$1 And if I go to /somedir/help/chat/here I get /somedir/help/index.php?on=/here It appears I'm getting close...
  4. gxpark

    Redirecting URLs

    Hi, I'm trying to get Apache to rewrite URLs based on this simple need: convert this: /somedir/help/chat to this: /somedir/help/index.php?on=chat I want to use an .htaccess file on /somedir/help, but I can't seem to find the proper config for mod_rewrite... I've tried with this (remember its...
  5. gxpark

    Image's position absolute, relative to other object that is -Possible?

    starway, I already thought of that, but that would mean I'd have to reload a very huge image on each mouse over... because I can't just replace part of the image, so I have to load the image of the map with the proper section highlighted. ritstmo, I can't see how that would work, as I'll still...
  6. gxpark

    Image's position absolute, relative to other object that is -Possible?

    That looks rather complicated, and if I read it right, it would move the image along with the mouse cursor, right? And that still doesn't solve the problem on the relative position of the map. Still, I think you gave me an idea to try to solve it, but I've decided to drop that &quot;cool&quot...
  7. gxpark

    Image's position absolute, relative to other object that is -Possible?

    It appears as of now it's impossible to do what I want (maybe another method...) In short, I have a map of a city where users can select a deputation, and I wanted that when the mouse was over a recognized area, that area would be highlighted by showing an image on top of the map. The map must...
  8. gxpark

    Image's position absolute, relative to other object that is -Possible?

    It has to be the other way around. I don't want to move imgRel's position at all, I want to move imgAbs. Currently I don't think it can be done as I've tried countless ways, and none works. It appears the browser doesn't expose the coords where it renders stuff (well, it does as long as you use...
  9. gxpark

    Image's position absolute, relative to other object that is -Possible?

    That's exactly the problem... imgRel left attribute is not set, and that's the whole point. I hoped there was a way to know where exactly is the browser rendering the stuff.
  10. gxpark

    Image's position absolute, relative to other object that is -Possible?

    That's not exactly what I want. Your method just moves the image relative to its OWN position, I want to move it relative to other image's position. Thanks.
  11. gxpark

    Image's position absolute, relative to other object that is -Possible?

    Hi, Is it possible to place an image on the screen relative to the position of another image? Something like this: <img id=&quot;imgRel&quot; src=&quot;someimage&quot;> <img id=&quot;imgAbs&quot; src=&quot;otherimage&quot; style=&quot;position: absolute; visibility: hidden&quot;> <script...
  12. gxpark

    Assigning &quot;onmouseenter&quot; programatically

    Sure, here it is: function cscript(root) { if (document.getElementsByTagName) var x = document.getElementsByTagName('TD'); else if (document.all) var x = document.all.tags('TD'); else return; for (var i=0;i<x.length;i++) { if (x[i].className ==...
  13. gxpark

    Assigning &quot;onmouseenter&quot; programatically

    I've found a really simple (a lot simpler) and more elegant way. I can't post it because I'm now at home. Let me know if someone is interested to post it tomorrow (it's a great example on how to handle events for a particular kind of tag). As for HTML being the only child node, well, the...
  14. gxpark

    Assigning &quot;onmouseenter&quot; programatically

    Hi, I'm trying to assign the &quot;onmouseenter&quot; event programatically with the following code: function cscript(root) { for(var i=0;i<root.childNodes.length;i++) { btn = root.childNodes(i); if (btn.className.toLowerCase().length > 6) { chk =...
  15. gxpark

    How to use mod_rewrite

    How come that this always happens to me... I try endlessly to find an answer until I finally ask for help, and then suddenly, the solution pops in my head. Well, I did many modifications to the httpd.conf file, until I got it right. lol

Part and Inventory Search

Back
Top