Sponsored Content
Full Discussion: Tooltip Question
Top Forums Web Development Tooltip Question Post 302234813 by i9300 on Wednesday 10th of September 2008 11:37:58 AM
Old 09-10-2008
Answer

In case anyone finds this useful
Here is the code that I needed.......

Place text files report_file.txt and report_file2.txt are in the same dir as html -- or path them out in the code....

Code:
<html>
   <head>
      <title>System Reporting</title>
      <script type="text/javascript">
         function showBox(file_name, id, obj) {
            var helpNode = document.createElement('div'+id);
            helpNode.id = 'popBox'+id;
            helpNode.setAttribute('class','popBox');

						var el = document.createElement("iframe");
						el.setAttribute('id', 'ifrm');
						helpNode.appendChild(el);
						el.setAttribute('src', file_name);

            obj.appendChild(helpNode);
         }

function hideBox(id) {
   var node = document.getElementById('popBox'+id);
   node.parentNode.removeChild(node);
}
</script>
<style type="text/css">
   .popBox {
      position: absolute;
      z-index: 2;
      background: #cccccc;
      width: 600px;
      padding: 0.3em;
      border: 1px solid gray;
   }
   span {
      color: red;
      font-weight: bold;
   }

   iframe {
      border: none;
      width: 600px;
      height: 200px;
   }

</style>
</head>
<body>
      <div onmouseover="showBox('report_file.txt', 'file1', this)"
				onmouseout="hideBox('file1')"
style="cursor:pointer"><span>HOST 1</span><br/></div>


    <div onmouseover="showBox('report_file2.txt', 'file2', this)"
				onmouseout="hideBox('file2')"
style="cursor:pointer"><span>HOST 2</span><br/></div>

</body>
</html>

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Next Question:

what is the function of swap in linux why i have to create apsolutely a particion for the swap when i install (i installed lnx4win mandrake and made an automat. disk particion and the install program one of my disk partitions that was 3gb devidet in 4 one native 700mb swap 600mb and the others i... (1 Reply)
Discussion started by: user666
1 Replies

2. Linux

I have a question...

hello,I want to get a free linux(English).How to get it?? (2 Replies)
Discussion started by: Jerry_wang
2 Replies

3. UNIX for Dummies Questions & Answers

A question?

using my unix os, can i do any autoexec.bat editing in order to execute selected programs that i use most often? :confused: (1 Reply)
Discussion started by: alecks1975
1 Replies

4. UNIX for Dummies Questions & Answers

Question

I was given a computer that was wiped clean that has a unix system installed.I want to know how do I format the hardrive so I can install windows XP Professional (1 Reply)
Discussion started by: gemini61
1 Replies

5. Shell Programming and Scripting

question

how do i write a script that'll open what i entered and scan it for a certain line of text. for example, i enter a filename (that exists) and in that file i want to scan a certain word that'll show how much of that word appears throughout the file. (2 Replies)
Discussion started by: mrhenry
2 Replies

6. Shell Programming and Scripting

IF question

Hi there I'm new to bash and unix for that matters. Just started yesterday, having to do a script for work, outputting HTML from various system info's. And me having coded Rexx for years ... then this is a little different :-) My question is simple .... I have an IF that does not work - >... (9 Replies)
Discussion started by: Mettemusens
9 Replies

7. UNIX for Dummies Questions & Answers

Help me these Question??

1. How the Unix system identify the Other User to access for file permission? 2. What command we use to convert the extension of a file name? 3. What command use to convert other editing file to Unix based text file? Please answer of these Question???Its necessary for me?? (3 Replies)
Discussion started by: pradipta_pks
3 Replies

8. Shell Programming and Scripting

Question help

sorry wrong section. (0 Replies)
Discussion started by: Scripter12345
0 Replies
Gtk2::IconView(3)					User Contributed Perl Documentation					 Gtk2::IconView(3)

NAME
Gtk2::IconView HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::IconView INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable Gtk2::CellLayout METHODS
widget = Gtk2::IconView->new widget = Gtk2::IconView->new_with_model ($model) o $model (Gtk2::TreeModel) integer = $icon_view->get_column_spacing $icon_view->set_column_spacing ($column_spacing) o $column_spacing (integer) integer = $icon_view->get_columns $icon_view->set_columns ($columns) o $columns (integer) (bx, by) = $icon_view->convert_widget_to_bin_window_coords ($wx, $wy) o $wx (integer) o $wy (integer) Since: gtk+ 2.11 pixmap = $icon_view->create_drag_icon ($path) o $path (Gtk2::TreePath) Since: gtk+ 2.8 list = $icon_view->get_cursor Since: gtk+ 2.8 $icon_view->set_cursor ($path, $cell, $start_editing) o $path (Gtk2::TreePath) o $cell (Gtk2::CellRenderer or undef) o $start_editing (boolean) Since: gtk+ 2.8 $icon_view->get_dest_item_at_pos ($drag_x, $drag_y) o $drag_x (integer) o $drag_y (integer) Since: gtk+ 2.8 list = $icon_view->get_drag_dest_item Since: gtk+ 2.8 $icon_view->set_drag_dest_item ($path, $pos) o $path (Gtk2::TreePath) o $pos (Gtk2::IconView::DropPosition) Since: gtk+ 2.8 $icon_view->enable_model_drag_dest ($actions, ...) o $actions (Gtk2::Gdk::DragAction) o ... (list) of Gtk2::TargetEntry's Since: gtk+ 2.8 $icon_view->enable_model_drag_source ($start_button_mask, $actions, ...) o $start_button_mask (Gtk2::Gdk::ModifierType) o $actions (Gtk2::Gdk::DragAction) o ... (list) of Gtk2::TargetEntry's Since: gtk+ 2.8 $icon_view->item_activated ($path) o $path (Gtk2::TreePath) $icon_view->get_item_at_pos ($x, $y) o $x (integer) o $y (integer) Since: gtk+ 2.8 integer = $icon_view->get_item_width $icon_view->set_item_width ($item_width) o $item_width (integer) integer = $icon_view->get_margin $icon_view->set_margin ($margin) o $margin (integer) integer = $icon_view->get_markup_column $icon_view->set_markup_column ($column) o $column (integer) treemodel = $icon_view->get_model $icon_view->set_model ($model) o $model (Gtk2::TreeModel) orientation = $icon_view->get_orientation $icon_view->set_orientation ($orientation) o $orientation (Gtk2::Orientation) treepath = $icon_view->get_path_at_pos ($x, $y) o $x (integer) o $y (integer) boolean = $icon_view->path_is_selected ($path) o $path (Gtk2::TreePath) integer = $icon_view->get_pixbuf_column $icon_view->set_pixbuf_column ($column) o $column (integer) boolean = $icon_view->get_reorderable Since: gtk+ 2.8 $icon_view->set_reorderable ($reorderable) o $reorderable (boolean) Since: gtk+ 2.8 integer = $icon_view->get_row_spacing $icon_view->set_row_spacing ($row_spacing) o $row_spacing (integer) $icon_view->scroll_to_path ($path, $use_align=FALSE, $row_align=0.0, $col_align=0.0) o $path (Gtk2::TreePath) o $use_align (boolean) o $row_align (double) o $col_align (double) Since: gtk+ 2.8 $icon_view->select_all $icon_view->select_path ($path) o $path (Gtk2::TreePath) $icon_view->selected_foreach ($func, $data=undef) o $func (scalar) o $data (scalar) list = $icon_view->get_selected_items selectionmode = $icon_view->get_selection_mode $icon_view->set_selection_mode ($mode) o $mode (Gtk2::SelectionMode) integer = $icon_view->get_spacing $icon_view->set_spacing ($spacing) o $spacing (integer) integer = $icon_view->get_text_column $icon_view->set_text_column ($column) o $column (integer) $icon_view->set_tooltip_cell ($tooltip, $path, $cell) o $tooltip (Gtk2::Tooltip) o $path (Gtk2::TreePath) o $cell (Gtk2::CellRenderer) Since: gtk+ 2.11 integer = $icon_view->get_tooltip_column Since: gtk+ 2.11 $icon_view->set_tooltip_column ($column) o $column (integer) Since: gtk+ 2.11 list = $icon_view->get_tooltip_context ($x, $y, $keyboard_tip) o $x (integer) o $y (integer) o $keyboard_tip (boolean) Since: gtk+ 2.11 $icon_view->set_tooltip_item ($tooltip, $path) o $tooltip (Gtk2::Tooltip) o $path (Gtk2::TreePath) Since: gtk+ 2.11 $icon_view->unselect_all $icon_view->unselect_path ($path) o $path (Gtk2::TreePath) $icon_view->unset_model_drag_dest Since: gtk+ 2.8 $icon_view->unset_model_drag_source Since: gtk+ 2.8 list = $icon_view->get_visible_range Since: gtk+ 2.8 PROPERTIES
'column-spacing' (integer : readable / writable / private) Space which is inserted between grid columns 'columns' (integer : readable / writable / private) Number of columns to display 'item-padding' (integer : readable / writable / private) Padding around icon view items 'item-width' (integer : readable / writable / private) The width used for each item 'margin' (integer : readable / writable / private) Space which is inserted at the edges of the icon view 'markup-column' (integer : readable / writable / private) Model column used to retrieve the text if using Pango markup 'model' (Gtk2::TreeModel : readable / writable / private) The model for the icon view 'orientation' (Gtk2::Orientation : readable / writable / private) How the text and icon of each item are positioned relative to each other 'pixbuf-column' (integer : readable / writable / private) Model column used to retrieve the icon pixbuf from 'reorderable' (boolean : readable / writable) View is reorderable 'row-spacing' (integer : readable / writable / private) Space which is inserted between grid rows 'selection-mode' (Gtk2::SelectionMode : readable / writable / private) The selection mode 'spacing' (integer : readable / writable / private) Space which is inserted between cells of an item 'text-column' (integer : readable / writable / private) Model column used to retrieve the text from 'tooltip-column' (integer : readable / writable / private) The column in the model containing the tooltip texts for the items SIGNALS
set-scroll-adjustments (Gtk2::IconView, Gtk2::Adjustment, Gtk2::Adjustment) item-activated (Gtk2::IconView, Gtk2::TreePath) selection-changed (Gtk2::IconView) select-all (Gtk2::IconView) unselect-all (Gtk2::IconView) select-cursor-item (Gtk2::IconView) toggle-cursor-item (Gtk2::IconView) boolean = activate-cursor-item (Gtk2::IconView) boolean = move-cursor (Gtk2::IconView, Gtk2::MovementStep, integer) ENUMS AND FLAGS
flags Gtk2::Gdk::DragAction o 'default' / 'GDK_ACTION_DEFAULT' o 'copy' / 'GDK_ACTION_COPY' o 'move' / 'GDK_ACTION_MOVE' o 'link' / 'GDK_ACTION_LINK' o 'private' / 'GDK_ACTION_PRIVATE' o 'ask' / 'GDK_ACTION_ASK' flags Gtk2::Gdk::ModifierType o 'shift-mask' / 'GDK_SHIFT_MASK' o 'lock-mask' / 'GDK_LOCK_MASK' o 'control-mask' / 'GDK_CONTROL_MASK' o 'mod1-mask' / 'GDK_MOD1_MASK' o 'mod2-mask' / 'GDK_MOD2_MASK' o 'mod3-mask' / 'GDK_MOD3_MASK' o 'mod4-mask' / 'GDK_MOD4_MASK' o 'mod5-mask' / 'GDK_MOD5_MASK' o 'button1-mask' / 'GDK_BUTTON1_MASK' o 'button2-mask' / 'GDK_BUTTON2_MASK' o 'button3-mask' / 'GDK_BUTTON3_MASK' o 'button4-mask' / 'GDK_BUTTON4_MASK' o 'button5-mask' / 'GDK_BUTTON5_MASK' o 'super-mask' / 'GDK_SUPER_MASK' o 'hyper-mask' / 'GDK_HYPER_MASK' o 'meta-mask' / 'GDK_META_MASK' o 'release-mask' / 'GDK_RELEASE_MASK' o 'modifier-mask' / 'GDK_MODIFIER_MASK' enum Gtk2::IconView::DropPosition o 'no-drop' / 'GTK_ICON_VIEW_NO_DROP' o 'drop-into' / 'GTK_ICON_VIEW_DROP_INTO' o 'drop-left' / 'GTK_ICON_VIEW_DROP_LEFT' o 'drop-right' / 'GTK_ICON_VIEW_DROP_RIGHT' o 'drop-above' / 'GTK_ICON_VIEW_DROP_ABOVE' o 'drop-below' / 'GTK_ICON_VIEW_DROP_BELOW' enum Gtk2::MovementStep o 'logical-positions' / 'GTK_MOVEMENT_LOGICAL_POSITIONS' o 'visual-positions' / 'GTK_MOVEMENT_VISUAL_POSITIONS' o 'words' / 'GTK_MOVEMENT_WORDS' o 'display-lines' / 'GTK_MOVEMENT_DISPLAY_LINES' o 'display-line-ends' / 'GTK_MOVEMENT_DISPLAY_LINE_ENDS' o 'paragraphs' / 'GTK_MOVEMENT_PARAGRAPHS' o 'paragraph-ends' / 'GTK_MOVEMENT_PARAGRAPH_ENDS' o 'pages' / 'GTK_MOVEMENT_PAGES' o 'buffer-ends' / 'GTK_MOVEMENT_BUFFER_ENDS' o 'horizontal-pages' / 'GTK_MOVEMENT_HORIZONTAL_PAGES' enum Gtk2::Orientation o 'horizontal' / 'GTK_ORIENTATION_HORIZONTAL' o 'vertical' / 'GTK_ORIENTATION_VERTICAL' enum Gtk2::SelectionMode o 'none' / 'GTK_SELECTION_NONE' o 'single' / 'GTK_SELECTION_SINGLE' o 'browse' / 'GTK_SELECTION_BROWSE' o 'multiple' / 'GTK_SELECTION_MULTIPLE' o 'extended' / 'GTK_SELECTION_EXTENDED' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::IconView(3)
All times are GMT -4. The time now is 11:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy