d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Need Help With Mobile Call Link - Google Blogspot > Ty
Add Reply New Topic New Poll
Member
Posts: 4,102
Joined: Jan 14 2008
Gold: 0.00
Jan 12 2016 02:05pm
Just wondering if I copy this:

<a href="tel:+1800229933">Call us free!</a>

Into the html It might mess up my easy template positioning of picture and text?

And it will work in the sense they click on it with their finger on any or most phones and it calls?

Thanks for your time.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jan 12 2016 03:38pm
Off hand looks like it'll work. Why don't you try it and see? Especially for your styling question
Member
Posts: 29,723
Joined: Jun 11 2007
Gold: 279.52
Jan 12 2016 03:46pm
Quote (keeperof_steel @ Jan 12 2016 08:05pm)
Just wondering if I copy this:

<a href="tel:+1800229933">Call us free!</a>

Into the html It might mess up my easy template positioning of picture and text?

And it will work in the sense they click on it with their finger on any or most phones and it calls?

Thanks for your time.


it depends on what the user has client side, if they have like a skype extension or w/e in their browser it will appear differently than maybe what you intended.
Member
Posts: 6,752
Joined: Jan 16 2009
Gold: 1,810.00
Jan 14 2016 08:01am
Correct - that should work.
Most modern mobile browsers support this, and will automatically launch the telephone app on your phone. On a computer it'll try to launch an installed phone program, usually Skype.

Code
<a href="tel:ACTUAL_PHONE_NUMBER">TEXT_YOU_WANT_USERS_TO_CLICK_ON</a>


So for example; if my phone number would be +581983893 I can just use it as following;
Code
<a href="tel:+581983893">Call Me (+581983893) </a>


If I'm correct using hyphens (-) in your telephone number will be ignored, if you'd like to do that for cleaner/easier to read code.

You can also use an image instead of text by doing this;
Code
<a href="tel:+581983893"> <img src="/path/to/yourimage.jpg"/> </a>


Not quite sure what you mean exactly by "It might mess up my easy template positioning of picture and text?" - As far as I'm aware, it'll just make a link of your phone number. So it shouldn't mess up any positioning at all.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll