DV Info Net

DV Info Net (https://www.dvinfo.net/forum/)
-   The TOTEM Poll: Totally Off Topic, Everything Media (https://www.dvinfo.net/forum/totem-poll-totally-off-topic-everything-media/)
-   -   HTML CODE Help! (https://www.dvinfo.net/forum/totem-poll-totally-off-topic-everything-media/42648-html-code-help.html)

James Emory April 8th, 2005 12:26 PM

HTML CODE Help!
 
Is there a line of HTML code that can be clicked to make a page/screen refresh instead of having someone click the refresh button in the browser? Thanks.

Steven Gotz April 8th, 2005 01:13 PM

Look under Reload From A User's Click on the following page:

http://www.htmlgoodies.com/tutorials...le.php/3479551

Imran Zaidi April 8th, 2005 01:27 PM

You can also do what CNN does. They auto-refresh the page every 1800 seconds. Or whatever interval you prefer.

Up where your meta tags go, put:

<meta http-equiv="refresh" content="1800">

James Emory April 8th, 2005 01:51 PM

Page Refreshing
 
Thanks guys. That's exactly what I needed and it's working great!!

James Emory April 23rd, 2005 02:50 PM

New Window - Hover Only
 
I looked all over that site and couldn't find a way to make a new window stay open just while you hover over a link or image. There are several very useful tutorials about new windows which I use. Does anyone know the code or know where the tutorial on that site is to make a new window open only while your mouse hovers over the link or image? Thanks.

Bob Costa April 24th, 2005 09:33 AM

To get a full window you would have to use Javascript, and I don't know if it can be done. What I do is cheat. I often just want some "helper text" to display, so I set the text into an IMG tag with "ALT=" and it does the trick fine for my needs. Mouse over the image and the text pops up.

HTH

James Emory April 24th, 2005 10:05 AM

New Window
 
Thanks for the info John. Yes, I am familiar with the ALT= command and it would probably be the easiest solution. I would probably use it but the text box doesn't stay open the whole time the mouse hovers over the link or image. Do you know a way to make the text box stay open until the mouse moves? I have found at least 5 ways to open a new window with HTML or Java combined, with a click or rollover, with or without window controls, timed to auto close, etc.. but no damn way to make it close with a mouseout. I can't figure out why that was left off of that HTML site.

This is what I am able to do with a mouseover (rollover/hover). Just cut & paste it into an .html document to see it work.

The Code
<a href=" " onmouseover="window=window.open('http://www.dvinfo.net/conf','newwindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizabl e=no,width=440,height=400,left=300,top=20'); return false;">Rollover</a>

New Window Codes Tutorials - just a couple of several

Tutorial 1
http://www.htmlgoodies.com/beyond/ja...le.php/3471221

Tutorial 2 - The Rollover
http://www.htmlgoodies.com/beyond/ja...le.php/3471271

Imran Zaidi April 24th, 2005 06:47 PM

Rather than popping windows since a lot of popup blockers will kill them before you have a chance to show them, try something like this...

http://www.dynamicdrive.com/dynamici...agetooltip.htm

Should be cross-browser, and cross-platform, and should also perform much more reliably and smoothly than trying to pop and kill a popup window. It's sort of like an ALT tag on steroids.

Also, you might want to keep a bookmark for this site - it's been a great resource to me for many years.

James Emory April 24th, 2005 07:23 PM

The application that I want is user induced. If the user rolls over a link, would a pop up blocker stop it. I'm not talking about windows opening automatically like a typical pop up. I will definitely take a look at the code from that site. Thanks.

Imran Zaidi April 24th, 2005 10:47 PM

Usually the only type of javascript popup you can get away with is one triggered onClick - universally agreed by all that it's an intentional action requesting for the window to pop. You'll find onLoad and onMouseover or onMouseout type windows are frequently blocked by popup blockers. Mostly because the world of porn and deceptive advertising is where these types of events are used to pop windows.

Christopher Lefchik April 25th, 2005 09:37 AM

Don't use the image alt tag to generate a text pop up. Only Internet Explorer (incorrectly) shows the alt text when the mouse hovers over an image. The proper tag to use is title="Whatever title you want to pop up". If you place the title tag before the alt tag Internet Explorer (and other browsers) will show the title text when the mouse pointer hovers over the image.

James, a pop up generated by an onClick event should work fine. The browser I use (Netscape) has a popup blocker built in, but whenever I click a link that generates a pop up it works fine. Pop up blockers couldn't block those kinds because they are used for so many functions on web sites, such as playing videos, viewing photos, etc.

James Emory April 25th, 2005 09:42 AM

I don't understand Chris. I use Internet Explorer and ALT tags work just fine. Are you saying to use the text tag and then the ALT tag right behind it or just the text tag by itself? If so, why? Thanks.

Christopher Lefchik April 25th, 2005 09:51 AM

James,

As I said, only Internet Explorer shows the alt text, even though that wasn't the intention of the alt tag. Other browsers follow standards and don't pop up the alt text. If you wish to display text in a pop up tool tip when a user mouses over an image, the correct tag to use is title="Your text". As I said, if you wish to use the title tag make sure to put it before the alt tag, otherwise IE will still pop up the alt text.

And a little trick I read, which you can use if you don't want Internet Explorer popping up your alt tag text, is to put an empty title tag before your alt tag.

Christopher Lefchik April 25th, 2005 09:53 AM

You should probably still use an alt tag, just in case an image doesn't load (in which case it will show the alt text). Also, it may be needed for people with disabilities who use software that reads web pages to them.

James Emory April 25th, 2005 10:05 AM

Okay. I have already used the ALT code and just tested the title code. Both display text but both also automatically disappear in about 3 seconds which I stated about the ALT code in a post above. Do you know a way to make the text box stay there the entire time the mouse hovers over the image or link. That's the effect I want no matter what code I use. Thanks.


All times are GMT -6. The time now is 05:46 PM.

DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network