tootip for route option

  • hagen_fenris
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 years 9 months ago #4489 by hagen_fenris
tootip for route option was created by hagen_fenris
Hi,
is there a way i can set a tooltip to the route option?
I attached a image to show where i wanted a tooltip to show up.

Regards
Fenris
Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #4494 by Dima
Replied by Dima on topic tootip for route option
Hi Fenris.

I added img tag, and alt tag.

You can try to add title tag (alter your page), and check, whether or not it will enough to you. If yes, I'll add alt text into title tag text.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • hagen_fenris
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 years 9 months ago #4497 by hagen_fenris
Replied by hagen_fenris on topic tootip for route option
Hi,
how should i add the title-tag?
i tried rereplacer from nonumber.
But that didn`t worked.

Which file do i need to edit?

Regards
Fenris

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #4498 by Dima
Replied by Dima on topic tootip for route option
You can use developer tools (for example, in firefox: menu->tools->web developer->inspector.

Find object for icon, and add title attriute into a tag, and or into img tag

Or the other very simple way.
Open my extension zip archive.
Folder: com_zhgooglemap\site\helpers
Open file placemarks.php

Find text "start.png"

You found the string, which I form for this toolbar

For test purposes add title attribute into a tag.

For example
was

$returnText .= 'setRouteDestination'.$currentArticleId.'(0);';
$returnText .= ' return false;"><img src="'.$imgpathUtils.'start.png" alt="'.JText::_('COM_ZHGOOGLEMAP_MAPMARKER_ACTION_START').'" /></a>\'+'."\n";
$returnText .= '\'</div>\'+'."\n";


and changed

$returnText .= 'setRouteDestination'.$currentArticleId.'(0);';
$returnText .= ' return false;"><img src="'.$imgpathUtils.'start.png" title="Hello world!" alt="'.JText::_('COM_ZHGOOGLEMAP_MAPMARKER_ACTION_START').'" /></a>\'+'."\n";
$returnText .= '\'</div>\'+'."\n";


And upload it.

Or change it on server by filezilla

Don't forget support my developments: post review in JED , donate , help with translation ;)
Last edit: 10 years 9 months ago by Dima.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #4499 by Dima
Replied by Dima on topic tootip for route option
Sorry, I add into img tag.


Change to

$returnText .= '\'<a href="#" title="Hello world!" onclick="';
$returnText .= 'setRouteDestination'.$currentArticleId.'(0);';
$returnText .= ' return false;"><img src="'.$imgpathUtils.'start.png" alt="'.JText::_('COM_ZHGOOGLEMAP_MAPMARKER_ACTION_START').'" /></a>\'+'."\n";


Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #4500 by Dima
Replied by Dima on topic tootip for route option
If it is hard to you, I can add alt text, and give you link to new alfa version

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.203 seconds
Powered by Kunena Forum